Fix some build errors

pull/5911/head
Yanwen Jin 2022-05-16 12:06:30 -07:00 committed by Jeff Davis
parent 502fb5ae57
commit 98bcf174c7
4 changed files with 6 additions and 6 deletions

View File

@ -2021,7 +2021,7 @@ columnar_tableam_init()
NULL,
&EnableVersionChecksColumnar,
true,
PGC_USERSET,
PGC_SUSET,
GUC_NO_SHOW_ALL,
NULL, NULL, NULL);
}

View File

@ -984,7 +984,7 @@ AlterExtensionUpdateStmtObjectAddress(Node *node, bool missing_ok)
* per given extension name and extension verision
*/
void
CreateExtensionWithVersion(const char *extname, const char *extVersion)
CreateExtensionWithVersion(const char *extname, char *extVersion)
{
CreateExtensionStmt *createExtensionStmt = makeNode(CreateExtensionStmt);
@ -1018,7 +1018,7 @@ CreateExtensionWithVersion(const char *extname, const char *extVersion)
* per given extension name and updates extension verision
*/
void
AlterExtensionUpdateStmt(const char *extname, const char *extVersion)
AlterExtensionUpdateStmt(const char *extname, char *extVersion)
{
AlterExtensionStmt *alterExtensionStmt = makeNode(AlterExtensionStmt);

View File

@ -21,4 +21,4 @@ END$proc$;
ALTER EXTENSION citus ADD FUNCTION citus_internal.upgrade_columnar_storage;
ALTER EXTENSION citus ADD FUNCTION citus_internal.downgrade_columnar_storage;
ALTER EXTENSION citus ADD FUNCTION citus_internal.columnar_ensure_am_depends_catalog;
ALTER EXTENSION citus ADD FUNCTION citus_internal.columnar_ensure_am_depends_catalog;

View File

@ -205,8 +205,8 @@ extern ObjectAddress AlterExtensionSchemaStmtObjectAddress(Node *stmt,
bool missing_ok);
extern ObjectAddress AlterExtensionUpdateStmtObjectAddress(Node *stmt,
bool missing_ok);
extern void CreateExtensionWithVersion(const char *extname, const char *extVersion);
extern void AlterExtensionUpdateStmt(const char *extname, const char *extVersion);
extern void CreateExtensionWithVersion(const char *extname, char *extVersion);
extern void AlterExtensionUpdateStmt(const char *extname, char *extVersion);
/* foreign_constraint.c - forward declarations */
extern bool ConstraintIsAForeignKeyToReferenceTable(char *constraintName,