mirror of
https://github.com/postgres/postgres.git
synced 2025-08-22 21:53:06 +03:00
Make OIDs optional, per discussions in pghackers. WITH OIDS is still the
default, but OIDS are removed from many system catalogs that don't need them. Some interesting side effects: TOAST pointers are 20 bytes not 32 now; pg_description has a three-column key instead of one. Bugs fixed in passing: BINARY cursors work again; pg_class.relhaspkey has some usefulness; pg_dump dumps comments on indexes, rules, and triggers in a valid order. initdb forced.
This commit is contained in:
@@ -18,15 +18,18 @@
|
||||
* Function Prototypes --
|
||||
*
|
||||
* The following protoypes define the public functions of the comment
|
||||
* related routines. CreateComments() is used to create/drop a comment
|
||||
* for any object with a valid oid. DeleteComments() deletes, if any,
|
||||
* the comments associated with the object. CommentObject() is used to
|
||||
* create comments to be identified by the specific type.
|
||||
* related routines. CommentObject() implements the SQL "COMMENT ON"
|
||||
* command. DeleteComments() deletes all comments for an object.
|
||||
* CreateComments creates (or deletes, if comment is NULL) a comment
|
||||
* for a specific key.
|
||||
*------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
extern void DeleteComments(Oid oid);
|
||||
extern void CommentObject(int objtype, char *objname, char *objproperty,
|
||||
List *objlist, char *comment);
|
||||
|
||||
extern void DeleteComments(Oid oid, Oid classoid);
|
||||
|
||||
extern void CreateComments(Oid oid, Oid classoid, int32 subid, char *comment);
|
||||
|
||||
#endif /* COMMENT_H */
|
||||
|
Reference in New Issue
Block a user