PostgreSQL Source Code
git master
comment.h
Go to the documentation of this file.
1
/*
2
* src/include/commands/comment.h
3
*
4
*-------------------------------------------------------------------------
5
*
6
* comment.h
7
*
8
* Prototypes for functions in commands/comment.c
9
*
10
* Copyright (c) 1999-2024, PostgreSQL Global Development Group
11
*
12
*-------------------------------------------------------------------------
13
*/
14
15
#ifndef COMMENT_H
16
#define COMMENT_H
17
18
#include "
catalog/objectaddress.h
"
19
#include "
nodes/parsenodes.h
"
20
21
/*------------------------------------------------------------------
22
* Function Prototypes --
23
*
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
*------------------------------------------------------------------
31
*/
32
33
extern
ObjectAddress
CommentObject
(
CommentStmt
*
stmt
);
34
35
extern
void
DeleteComments
(
Oid
oid,
Oid
classoid,
int32
subid);
36
37
extern
void
CreateComments
(
Oid
oid,
Oid
classoid,
int32
subid,
const
char
*
comment
);
38
39
extern
void
DeleteSharedComments
(
Oid
oid,
Oid
classoid);
40
41
extern
void
CreateSharedComments
(
Oid
oid,
Oid
classoid,
const
char
*
comment
);
42
43
extern
char
*
GetComment
(
Oid
oid,
Oid
classoid,
int32
subid);
44
45
#endif
/* COMMENT_H */
int32
int32_t int32
Definition:
c.h:481
CreateSharedComments
void CreateSharedComments(Oid oid, Oid classoid, const char *comment)
Definition:
comment.c:238
DeleteSharedComments
void DeleteSharedComments(Oid oid, Oid classoid)
Definition:
comment.c:374
GetComment
char * GetComment(Oid oid, Oid classoid, int32 subid)
Definition:
comment.c:410
DeleteComments
void DeleteComments(Oid oid, Oid classoid, int32 subid)
Definition:
comment.c:326
CreateComments
void CreateComments(Oid oid, Oid classoid, int32 subid, const char *comment)
Definition:
comment.c:143
CommentObject
ObjectAddress CommentObject(CommentStmt *stmt)
Definition:
comment.c:40
stmt
#define stmt
Definition:
indent_codes.h:59
comment
#define comment
Definition:
indent_codes.h:49
objectaddress.h
parsenodes.h
Oid
unsigned int Oid
Definition:
postgres_ext.h:31
CommentStmt
Definition:
parsenodes.h:3279
ObjectAddress
Definition:
objectaddress.h:25
src
include
commands
comment.h
Generated on Mon Dec 9 2024 00:13:24 for PostgreSQL Source Code by
1.9.1