mirror of
https://github.com/postgres/postgres.git
synced 2026-03-01 12:50:55 -05:00
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.
35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* comment.h
|
|
*
|
|
* Prototypes for functions in commands/comment.c
|
|
*
|
|
* Copyright (c) 1999, PostgreSQL Global Development Group
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
|
|
#ifndef COMMENT_H
|
|
#define COMMENT_H
|
|
|
|
#include "nodes/pg_list.h"
|
|
|
|
/*------------------------------------------------------------------
|
|
* Function Prototypes --
|
|
*
|
|
* The following protoypes define the public functions of the comment
|
|
* 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 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 */
|