Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2f905a2

Browse files
committed
a couple of comments, don't set varnosyn in canonicalize_custom_exprs_mutator
1 parent 2297938 commit 2f905a2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/nodes_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,9 @@ canonicalize_custom_exprs_mutator(Node *node, void *cxt)
366366

367367
#if PG_VERSION_NUM >= 130000
368368
/*
369-
* In >=13 (9ce77d75c5) varnoold and varoattno was changed to varnosyn and varattnosyn
369+
* In >=13 (9ce77d75c5) varnoold and varoattno were changed to varnosyn and
370+
* varattnosyn, and they are not consulted in _equalVar anymore.
370371
*/
371-
var->varnosyn = INDEX_VAR;
372372
var->varattno = var->varattnosyn;
373373
#else
374374
/* Replace original 'varnoold' */

src/partition_creation.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,8 @@ drop_pathman_check_constraint(Oid relid)
13221322
/*
13231323
* Since 1281a5c907b AlterTable() was changed.
13241324
* recurse = true (see stmt->relation->inh makeRangeVarFromRelid() makeRangeVar())
1325+
* Dropping constraint won't do parse analyze, so AlterTableInternal
1326+
* is enough.
13251327
*/
13261328
AlterTableInternal(relid, cmds, true);
13271329
#else

0 commit comments

Comments
 (0)