OSDN Git Service

I've created a new shared catalog table pg_shdescription to store
authorBruce Momjian <bruce@momjian.us>
Sun, 12 Feb 2006 03:22:21 +0000 (03:22 +0000)
committerBruce Momjian <bruce@momjian.us>
Sun, 12 Feb 2006 03:22:21 +0000 (03:22 +0000)
commitf9a726aa883e1690f66bec535d85b34e1f9ed7e7
tree764d3d849a2614ea5edcd05eaa36496a79f06c87
parent95dbf9c02f9a37fc171e0b94b37f9f903abc3942
I've created a new shared catalog table pg_shdescription to store
comments on cluster global objects like databases, tablespaces, and
roles.

It touches a lot of places, but not much in the way of big changes.  The
only design decision I made was to duplicate the query and manipulation
functions rather than to try and have them handle both shared and local
comments.  I believe this is simpler for the code and not an issue for
callers because they know what type of object they are dealing with.
This has resulted in a shobj_description function analagous to
obj_description and backend functions [Create/Delete]SharedComments
mirroring the existing [Create/Delete]Comments functions.

pg_shdescription.h goes into src/include/catalog/

Kris Jurka
25 files changed:
doc/src/sgml/catalogs.sgml
doc/src/sgml/func.sgml
doc/src/sgml/ref/comment.sgml
src/backend/catalog/Makefile
src/backend/catalog/genbki.sh
src/backend/commands/comment.c
src/backend/commands/dbcommands.c
src/backend/commands/tablespace.c
src/backend/commands/user.c
src/backend/parser/gram.y
src/bin/initdb/initdb.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dumpall.c
src/bin/psql/command.c
src/bin/psql/describe.c
src/bin/psql/describe.h
src/bin/psql/tab-complete.c
src/include/catalog/catversion.h
src/include/catalog/indexing.h
src/include/catalog/pg_database.h
src/include/catalog/pg_proc.h
src/include/catalog/pg_shdescription.h [new file with mode: 0644]
src/include/commands/comment.h
src/include/postgres.h
src/test/regress/expected/sanity_check.out