2 * src/include/commands/comment.h
4 *-------------------------------------------------------------------------
8 * Prototypes for functions in commands/comment.c
10 * Copyright (c) 1999-2023, PostgreSQL Global Development Group
12 *-------------------------------------------------------------------------
18 #include "catalog/objectaddress.h"
19 #include "nodes/parsenodes.h"
21 /*------------------------------------------------------------------
22 * Function Prototypes --
24 * The following prototypes define the public functions of the comment
25 * related routines. CommentObject() implements the SQL "COMMENT ON"
26 * command. DeleteComments() deletes all comments for an object.
27 * CreateComments creates (or deletes, if comment is NULL) a comment
28 * for a specific key. There are versions of these two methods for
29 * both normal and shared objects.
30 *------------------------------------------------------------------
33 extern ObjectAddress
CommentObject(CommentStmt
*stmt
);
35 extern void DeleteComments(Oid oid
, Oid classoid
, int32 subid
);
37 extern void CreateComments(Oid oid
, Oid classoid
, int32 subid
, const char *comment
);
39 extern void DeleteSharedComments(Oid oid
, Oid classoid
);
41 extern void CreateSharedComments(Oid oid
, Oid classoid
, const char *comment
);
43 extern char *GetComment(Oid oid
, Oid classoid
, int32 subid
);
45 #endif /* COMMENT_H */