mirror of https://github.com/citusdata/citus.git
Refactor identity sequence retrieval for improved readability and add cleanup to regression test for issue 7887
parent
ee1992d4c5
commit
b78a344005
|
@ -1130,7 +1130,8 @@ ReorderInsertSelectTargetLists(Query *originalQuery, RangeTblEntry *insertRte,
|
|||
oldInsertTargetEntry->resname);
|
||||
bool missingOk = false;
|
||||
|
||||
Oid seqOid = getIdentitySequence(identitySequenceRelation_compat(targetRel), attrNum, missingOk);
|
||||
Oid seqOid = getIdentitySequence(identitySequenceRelation_compat(
|
||||
targetRel), attrNum, missingOk);
|
||||
if (!OidIsValid(seqOid))
|
||||
{
|
||||
table_close(targetRel, AccessShareLock);
|
||||
|
|
|
@ -88,4 +88,6 @@ UNION ALL
|
|||
SELECT 'local2_bydefault', * FROM local2_bydefault
|
||||
ORDER BY table_name, id;
|
||||
|
||||
-- Cleanup
|
||||
SET client_min_messages TO WARNING;
|
||||
DROP SCHEMA issue_7887 CASCADE;
|
||||
|
|
Loading…
Reference in New Issue