Don't repeatedly register cache callbacks in pgoutput plugin.
[pgsql.git] / src / include / commands / comment.h
blobd349159f05c7b0db6bf2e6b6821a680aa85e2502
1 /*
2 * src/include/commands/comment.h
4 *-------------------------------------------------------------------------
6 * comment.h
8 * Prototypes for functions in commands/comment.c
10 * Copyright (c) 1999-2019, PostgreSQL Global Development Group
12 *-------------------------------------------------------------------------
15 #ifndef COMMENT_H
16 #define COMMENT_H
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 */