4 *-------------------------------------------------------------------------
8 * Prototypes for functions in commands/comment.c
10 * Copyright (c) 1999-2009, PostgreSQL Global Development Group
12 *-------------------------------------------------------------------------
18 #include "nodes/parsenodes.h"
20 /*------------------------------------------------------------------
21 * Function Prototypes --
23 * The following prototypes define the public functions of the comment
24 * related routines. CommentObject() implements the SQL "COMMENT ON"
25 * command. DeleteComments() deletes all comments for an object.
26 * CreateComments creates (or deletes, if comment is NULL) a comment
27 * for a specific key. There are versions of these two methods for
28 * both normal and shared objects.
29 *------------------------------------------------------------------
32 extern void CommentObject(CommentStmt
*stmt
);
34 extern void DeleteComments(Oid oid
, Oid classoid
, int32 subid
);
36 extern void CreateComments(Oid oid
, Oid classoid
, int32 subid
, char *comment
);
38 extern void DeleteSharedComments(Oid oid
, Oid classoid
);
40 extern void CreateSharedComments(Oid oid
, Oid classoid
, char *comment
);
42 #endif /* COMMENT_H */