=== Applying patches on top of PostgreSQL commit ID a6483f5ac9680801da0c8ad207c2870c0d6a61c2 === /etc/rc.d/jail: WARNING: Per-jail configuration via jail_* variables is obsolete. Please consider migrating to /etc/jail.conf. Thu Mar 5 19:16:23 UTC 2026 On branch cf/5782 nothing to commit, working tree clean === using 'git am' to apply patch ./v1-0001-rename-ExecComputeStoredGenerated-to-ExecComputeGenerated.patch === Applying: rename ExecComputeStoredGenerated to ExecComputeGenerated === using 'git am' to apply patch ./v1-0002-foreign-key-on-virtual-generated-column.patch === Applying: foreign key on virtual generated column error: sha1 information is lacking or useless (src/backend/commands/copyfrom.c). error: could not build fake ancestor hint: Use 'git am --show-current-patch=diff' to see the failed patch Patch failed at 0001 foreign key on virtual generated column When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". === using patch(1) to apply patch ./v1-0002-foreign-key-on-virtual-generated-column.patch === patching file src/backend/commands/copyfrom.c Hunk #1 succeeded at 1348 (offset 1 line). patching file src/backend/commands/tablecmds.c Hunk #1 succeeded at 660 (offset 1 line). Hunk #2 FAILED at 8642. Hunk #3 succeeded at 10284 (offset 62 lines). Hunk #4 succeeded at 15767 (offset 115 lines). Hunk #5 succeeded at 15924 (offset 115 lines). Hunk #6 succeeded at 15949 (offset 115 lines). 1 out of 6 hunks FAILED -- saving rejects to file src/backend/commands/tablecmds.c.rej patching file src/backend/executor/execReplication.c Hunk #1 succeeded at 832 (offset 244 lines). Hunk #2 succeeded at 937 (offset 251 lines). patching file src/backend/executor/execUtils.c patching file src/backend/executor/nodeModifyTable.c Hunk #1 succeeded at 426 (offset 11 lines). Hunk #2 succeeded at 440 (offset 11 lines). Hunk #3 succeeded at 485 (offset 11 lines). Hunk #4 succeeded at 515 (offset 11 lines). Hunk #5 succeeded at 561 (offset 11 lines). Hunk #6 succeeded at 579 (offset 11 lines). Hunk #7 succeeded at 590 (offset 11 lines). Hunk #8 succeeded at 598 (offset 11 lines). Hunk #9 succeeded at 621 (offset 11 lines). Hunk #10 succeeded at 959 (offset 11 lines). Hunk #11 succeeded at 1085 (offset 9 lines). Hunk #12 succeeded at 2195 (offset 30 lines). patching file src/backend/utils/adt/ri_triggers.c Hunk #1 succeeded at 32 with fuzz 1 (offset -1 lines). Hunk #2 succeeded at 286 (offset 1 line). Hunk #3 succeeded at 1473 (offset 1 line). Hunk #4 succeeded at 1484 (offset 1 line). Hunk #5 succeeded at 1595 (offset 1 line). patching file src/include/executor/nodeModifyTable.h patching file src/test/regress/expected/generated_virtual.out Hunk #1 succeeded at 788 (offset 21 lines). patching file src/test/regress/sql/generated_virtual.sql Hunk #1 succeeded at 429 (offset 10 lines). Unstaged changes after reset: M src/backend/commands/copyfrom.c M src/backend/commands/tablecmds.c M src/backend/executor/execReplication.c M src/backend/executor/execUtils.c M src/backend/executor/nodeModifyTable.c M src/backend/utils/adt/ri_triggers.c M src/include/executor/nodeModifyTable.h M src/test/regress/expected/generated_virtual.out M src/test/regress/sql/generated_virtual.sql Removing src/backend/commands/tablecmds.c.rej === using 'git apply' to apply patch ./v1-0002-foreign-key-on-virtual-generated-column.patch === error: repository lacks the necessary blob to perform 3-way merge. Falling back to direct application... Applied patch to 'src/backend/commands/tablecmds.c' with conflicts. error: repository lacks the necessary blob to perform 3-way merge. Falling back to direct application... Applied patch to 'src/backend/executor/execUtils.c' cleanly. error: repository lacks the necessary blob to perform 3-way merge. Falling back to direct application... Applied patch to 'src/backend/utils/adt/ri_triggers.c' cleanly. error: repository lacks the necessary blob to perform 3-way merge. Falling back to direct application... Applied patch to 'src/test/regress/expected/generated_virtual.out' cleanly. Applied patch to 'src/test/regress/sql/generated_virtual.sql' cleanly. U src/backend/commands/tablecmds.c diff --cc src/backend/commands/tablecmds.c index 85242dcc245,252776c0005..00000000000 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@@ -8704,16 -8642,17 +8704,29 @@@ ATExecSetExpression(AlteredTableInfo *t * this renders them pointless. */ RelationClearMissing(rel); + } ++<<<<<<< ours + /* make sure we don't conflict with later attribute modifications */ + CommandCounterIncrement(); + } ++======= + /* make sure we don't conflict with later attribute modifications */ + CommandCounterIncrement(); + + /* + * Find everything that depends on the column (constraints, indexes, + * etc), and record enough information to let us recreate the objects + * after rewrite. + */ + RememberAllDependentForRebuilding(tab, AT_SetExpression, rel, attnum, colName); ++>>>>>>> theirs + + /* + * Find everything that depends on the column (constraints, indexes, etc), + * and record enough information to let us recreate the objects. + */ + RememberAllDependentForRebuilding(tab, AT_SetExpression, rel, attnum, colName); /* * Drop the dependency records of the GENERATED expression, in particular