aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2005-05-11 01:41:41 +0000
committerNeil Conway <neilc@samurai.com>2005-05-11 01:41:41 +0000
commit48f8eadffb0a0c6274d0f9d58d5f73166c1f2fc5 (patch)
treed911ad594886b4529c2e5484e0c78dafd1f1a752 /src/backend/access/gist/gist.c
parentf38e413b209d33d70b3dbdb6fd799a59e392140c (diff)
downloadpostgresql-48f8eadffb0a0c6274d0f9d58d5f73166c1f2fc5.tar.gz
postgresql-48f8eadffb0a0c6274d0f9d58d5f73166c1f2fc5.zip
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.
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions