create table/comment support

This commit is contained in:
wuyuechuan
2022-07-23 15:43:45 +08:00
parent ebd714a73c
commit 46cdfe82c4
13 changed files with 346 additions and 13 deletions

View File

@ -99,6 +99,7 @@ extern const uint32 PITR_INIT_VERSION_NUM;
extern const uint32 PUBLICATION_INITIAL_DATA_VERSION_NAME;
extern const uint32 CREATE_FUNCTION_DEFINER_VERSION;
extern const uint32 KEYWORD_IGNORE_COMPART_VERSION_NUM;
extern const uint32 COMMENT_SUPPORT_VERSION_NUM;
extern void register_backend_version(uint32 backend_version);
extern bool contain_backend_version(uint32 version_number);

View File

@ -1277,6 +1277,7 @@ typedef struct IndexStmt {
List* partIndexOldPSortOid; /* partition psort oid, if any */
Node* partClause; /* partition index define */
bool* partIndexUsable; /* is partition index usable */
List* indexOptions; /* b compatiblity options */
/* @hdfs
* is a partitioned index? The foreign table dose not index. The isPartitioned
* value is false when relation is a foreign table.

View File

@ -1006,6 +1006,7 @@ typedef struct ColumnDef {
Oid collOid; /* collation OID (InvalidOid if not set) */
List *constraints; /* other constraints on column */
List *fdwoptions; /* per-column FDW options */
List *columnOptions; /* b compatiblity options */
ClientLogicColumnRef *clientLogicColumnRef;
Position *position;
Form_pg_attribute dropped_attr; /* strcuture for dropped attribute during create table like OE */
@ -1170,6 +1171,7 @@ typedef struct CreateStmt {
List *uuids; /* list of uuid, used for create sequence(like 'create table t(a serial))' */
Oid oldBucket; /* bucketoid of resizing table */
List *oldNode; /* relfilenode of resizing table */
List *tableOptions; /* b compatiblity options */
List *oldToastNode; /* toastnode of resizing table */
char relkind; /* type of object */
} CreateStmt;