mirror of https://github.com/citusdata/citus.git
getIdentitySequence now uses Relation instead of relation_id
Relevant PG commit:
509199587df73f06eda898ae13284292f4ae573a
509199587d
pg17_kickoff
parent
dd19847c97
commit
022ca99a6b
|
@ -395,7 +395,8 @@ pg_get_tableschemadef_string(Oid tableRelationId, IncludeSequenceDefaults
|
|||
if (attributeForm->attidentity && includeIdentityDefaults)
|
||||
{
|
||||
bool missing_ok = false;
|
||||
Oid seqOid = getIdentitySequence(RelationGetRelid(relation),
|
||||
Oid seqOid = getIdentitySequence(identitySequenceRelation_compat(
|
||||
relation),
|
||||
attributeForm->attnum, missing_ok);
|
||||
|
||||
if (includeIdentityDefaults == INCLUDE_IDENTITY)
|
||||
|
|
|
@ -170,7 +170,8 @@ worker_adjust_identity_column_seq_ranges(PG_FUNCTION_ARGS)
|
|||
|
||||
if (attributeForm->attidentity)
|
||||
{
|
||||
Oid sequenceOid = getIdentitySequence(tableRelationId,
|
||||
Oid sequenceOid = getIdentitySequence(identitySequenceRelation_compat(
|
||||
tableRelation),
|
||||
attributeForm->attnum,
|
||||
missingSequenceOk);
|
||||
|
||||
|
|
|
@ -100,6 +100,7 @@ getStxstattarget_compat(HeapTuple tup)
|
|||
|
||||
#define WaitEventSetTracker_compat CurrentResourceOwner
|
||||
|
||||
#define identitySequenceRelation_compat(a) (a)
|
||||
#else
|
||||
|
||||
#include "access/htup_details.h"
|
||||
|
@ -123,6 +124,8 @@ getStxstattarget_compat(HeapTuple tup)
|
|||
|
||||
#define WaitEventSetTracker_compat CurrentMemoryContext
|
||||
|
||||
#define identitySequenceRelation_compat(a) (RelationGetRelid(a))
|
||||
|
||||
#endif
|
||||
|
||||
#if PG_VERSION_NUM >= PG_VERSION_16
|
||||
|
|
Loading…
Reference in New Issue