]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Further stabilize a postgres_fdw test case.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 11 Feb 2026 16:03:01 +0000 (11:03 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 11 Feb 2026 16:03:17 +0000 (11:03 -0500)
commita3fd53babb8e8bde688739ec367a6d170495cfb4
tree8e7b85067132c1f49abd17ffa56bc9c72cfddcaf
parent1efdd7cc630a963e56f34d44877d2097b98166d6
Further stabilize a postgres_fdw test case.

The buildfarm occasionally shows a variant row order in the output
of this UPDATE ... RETURNING, implying that the preceding INSERT
dropped one of the rows into some free space within the table rather
than appending them all at the end.  It's not entirely clear why that
happens some times and not other times, but we have established that
it's affected by concurrent activity in other databases of the
cluster.  In any case, the behavior is not wrong; the test is at fault
for presuming that a seqscan will give deterministic row ordering.
Add an ORDER BY atop the update to stop the buildfarm noise.

The buildfarm seems to have shown this only in v18 and master
branches, but just in case the cause is older, back-patch to
all supported branches.

Discussion: https://postgr.es/m/3866274.1770743162@sss.pgh.pa.us
Backpatch-through: 14
contrib/postgres_fdw/expected/postgres_fdw.out
contrib/postgres_fdw/sql/postgres_fdw.sql