]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Revise test case added in 43746996399541ecb5c7b188725a5f097c15ceae.
authorRobert Haas <rhaas@postgresql.org>
Sat, 30 Jul 2022 03:24:39 +0000 (23:24 -0400)
committerRobert Haas <rhaas@postgresql.org>
Sat, 30 Jul 2022 03:26:03 +0000 (23:26 -0400)
commitd92f2bc0dae35747387f006519a74d3058a6bcb8
tree2e8235d03d917c0fa9dd3c1df0f6f17b03f04ad2
parent2eb3f167f991d4e37b101c56de4e449f63b7a637
Revise test case added in 43746996399541ecb5c7b188725a5f097c15ceae.

Instead of using command_ok() to run psql, use safe_psql(). wrasse
isn't happy, and it be because of failure to pass -X to the psql
invocation, which safe_psql() will do automatically.

Since safe_psql() returns standard output instead of writing it to
a file, this requires some changes to the incantation for running
'diff'.

Test against the 'regression' database rather than 'postgres' so
we test more than just one table. That also means we need to record
the horizons later, after the test does "VACUUM FULL pg_largeobject".

Add an ORDER BY clause to the horizon query for stability.

Patch by me, reviewed by Tom Lane.

Discussion: http://postgr.es/m/CA+TgmoaGBbpzgu3=du1f9zDUbkfycO0y=_uWrLFy=KKEqXWeLQ@mail.gmail.com
src/bin/pg_upgrade/t/002_pg_upgrade.pl