mirror of https://github.com/citusdata/citus.git
Removes CopyGetAttnums function definition for PG14
This function was copied from Postgres but it is not static at PG14 So we keep the definition only for previous versions Relevant PG commit: c532d15dddff14b01fe9ef1d465013cb8ef186dfpg14_support_after_rebase
parent
c2f698674f
commit
2d421b95ef
|
@ -267,7 +267,9 @@ static CopyCoercionData * ColumnCoercionPaths(TupleDesc destTupleDescriptor,
|
|||
Oid *finalColumnTypeArray);
|
||||
static FmgrInfo * TypeOutputFunctions(uint32 columnCount, Oid *typeIdArray,
|
||||
bool binaryFormat);
|
||||
#if PG_VERSION_NUM < PG_VERSION_14
|
||||
static List * CopyGetAttnums(TupleDesc tupDesc, Relation rel, List *attnamelist);
|
||||
#endif
|
||||
static bool CopyStatementHasFormat(CopyStmt *copyStatement, char *formatName);
|
||||
static void CitusCopyFrom(CopyStmt *copyStatement, QueryCompletionCompat *completionTag);
|
||||
static HTAB * CreateConnectionStateHash(MemoryContext memoryContext);
|
||||
|
@ -3277,6 +3279,8 @@ CreateRangeTable(Relation rel, AclMode requiredAccess)
|
|||
}
|
||||
|
||||
|
||||
#if PG_VERSION_NUM < PG_VERSION_14
|
||||
|
||||
/* Helper for CheckCopyPermissions(), copied from postgres */
|
||||
static List *
|
||||
CopyGetAttnums(TupleDesc tupDesc, Relation rel, List *attnamelist)
|
||||
|
@ -3358,6 +3362,9 @@ CopyGetAttnums(TupleDesc tupDesc, Relation rel, List *attnamelist)
|
|||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* CreateConnectionStateHash constructs a hash table which maps from socket
|
||||
* number to CopyConnectionState, passing the provided MemoryContext to
|
||||
|
|
Loading…
Reference in New Issue