postgresql/src/backend
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
..
access Code cleanup: in C89, there is no point casting the first argument to 2005-05-11 01:26:02 +00:00
bootstrap For some reason access/tupmacs.h has been #including utils/memutils.h, 2005-05-06 17:24:55 +00:00
catalog Back out check for unreferenced files. 2005-05-10 22:27:30 +00:00
commands Back out check for unreferenced files. 2005-05-10 22:27:30 +00:00
executor Add some defenses against functions declared to return set that don't 2005-05-09 14:28:39 +00:00
lib Replace the use of "0" with "NULL" where appropriate in dllist.c, for 2005-01-18 22:59:32 +00:00
libpq Finish up the flat-files project: get rid of GetRawDatabaseInfo() hack 2005-02-26 18:43:34 +00:00
main Tag appropriate files for rc3 2004-12-31 22:04:05 +00:00
nodes Fix duplicate call to WRITE_NODE_FIELD(whereClause) in _outSelectStmt 2005-05-09 15:09:19 +00:00
optimizer For some reason access/tupmacs.h has been #including utils/memutils.h, 2005-05-06 17:24:55 +00:00
parser Add COPY WITH CVS HEADER to allow a heading line as the first line in 2005-05-07 02:22:49 +00:00
po Translation updates 2005-01-17 20:27:44 +00:00
port Refactor fork()-related code. We need to do various housekeeping tasks 2005-03-10 07:14:03 +00:00
postmaster This patch reduces the size of the message header used by statistics 2005-05-11 01:41:41 +00:00
regex Install Tcl regex fixes to sync our regex engine with Tcl 8.4.8 (up from 2004-11-24 22:56:54 +00:00
rewrite Implement sharable row-level locks, and use them for foreign key references 2005-04-28 21:47:18 +00:00
storage Code cleanup: in C89, there is no point casting the first argument to 2005-05-11 01:26:02 +00:00
tcop Change CREATE TYPE to require datatype output and send functions to have 2005-05-01 18:56:19 +00:00
utils This patch reduces the size of the message header used by statistics 2005-05-11 01:41:41 +00:00
Makefile On Windows, set the postmaster executable's stack size to 4MB, so that 2005-01-26 21:55:26 +00:00
nls.mk New translation 2005-01-09 17:10:29 +00:00