postgresql/src
Neil Conway 48f8eadffb This patch reduces the size of the message header used by statistics
collector messages, per recent discussion on pgsql-patches. This
actually required quite a few changes -- for example,
"databaseid != InvalidOid" was used to check whether a slot in the
backend entry table was initialized, but that no longer works since
the slot might be initialized prior to receiving the BESTART message
which contains the database id. We now use procpid > 0 to indicate
that a slot is non-empty.

Other changes:

- various comment improvements and cleanups
- there's no need to zero-out the entire activity buffer in
  pgstat_add_backend(), we can just set activity[0] to '\0'.
- remove the counting of the # of connections to a database; this
  was not used anywhere

One change in behavior I wasn't sure about: previously, the code
would create a hash table entry for a database as soon as any message
was received whose header referenced that database. Now, we only
create hash table entries as needed (so for example BESTART won't
create a database hash table entry, since it doesn't need to
access anything in the per-db hash table). It would be easy enough
to retain the old behavior, but AFAICS it is not required.
2005-05-11 01:41:41 +00:00
..
backend This patch reduces the size of the message header used by statistics 2005-05-11 01:41:41 +00:00
bin Add COPY WITH CVS HEADER to allow a heading line as the first line in 2005-05-07 02:22:49 +00:00
include This patch reduces the size of the message header used by statistics 2005-05-11 01:41:41 +00:00
interfaces Code cleanup: in C89, there is no point casting the first argument to 2005-05-11 01:26:02 +00:00
makefiles Revert -Wl, change to Makefile.osf, as the allegedly more standard 2005-01-06 20:56:50 +00:00
pl For some reason access/tupmacs.h has been #including utils/memutils.h, 2005-05-06 17:24:55 +00:00
port Must count '*' characters as potential arguments. 2005-04-14 20:53:09 +00:00
template Support Sun's compiler on SunOS4 (a/k/a Solaris 9). Per ayan@ayan.net 2004-12-29 23:47:40 +00:00
test Regression tests for the COPY CSV header feature. From Andrew Dunstan. 2005-05-10 00:16:07 +00:00
timezone Attached patch gets rid of the global timezone in the following steps: 2005-04-19 03:13:59 +00:00
tools Update release checklist to reflect that HISTORY and INSTALL don't 2005-05-08 23:34:15 +00:00
tutorial Adjust src/tutorial Makefile so that it can use pgxs. This allows the 2005-01-13 18:23:22 +00:00
utils PostgreSQL extension makefile framework ("pgxs"), by Fabien Coelho, with 2004-07-30 12:26:40 +00:00
bcc32.mak $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
DEVELOPERS just testing a script... 1999-07-30 03:45:57 +00:00
Makefile Adjust src/tutorial Makefile so that it can use pgxs. This allows the 2005-01-13 18:23:22 +00:00
Makefile.global.in Use 'cp' and 'chmod' in place of 'install' to install header files. 2005-03-25 23:22:54 +00:00
Makefile.shlib Fix up makefile dependencies for pg_config_paths.h. 2004-11-20 21:13:06 +00:00
nls-global.mk More locale fixes for pg_ctl. 2004-06-01 03:32:42 +00:00
win32.mak $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00