[Patch] Fix pg_upgrade/t/007_multixact_conversion.pl

Started by Potapov Alexander6 months ago2 messageshackers

Thread notes

1 note#tests-build
hackorum-bot#tests-build
hackorum-bot
2 days ago

@global #tests-build

#tests-build
Jump to latest
#1Potapov Alexander
a.potapov@postgrespro.com

Hello,

This about the test pg_upgrade/t/007_multixact_conversion.pl. It was added several months ago. The test creates table mxofftest :
CREATE TABLE mxofftest (id INT PRIMARY KEY, n_updated INT)
Next there is wrong usage of this table:
"SELECT ctid, xmin, xmax, * FROM mxofftest");
It should be
"SELECT id, n_updated, * FROM mxofftest");

The fix is very simple, the patch attached.

Best regards,
Alexander Potapov

Attachments:

t248545_1
0001-Use-correct-fields-in-table-mxofftest.patchapplication/octet-streamDownload+1-2
#2Heikki Linnakangas
hlinnaka@iki.fi
In reply to: Potapov Alexander (#1)
Re: [Patch] Fix pg_upgrade/t/007_multixact_conversion.pl

On 15/06/2026 15:23, Potapov Alexander wrote:

Hello,

This about the test pg_upgrade/t/007_multixact_conversion.pl. It was added several months ago. The test creates table mxofftest :
CREATE TABLE mxofftest (id INT PRIMARY KEY, n_updated INT)
Next there is wrong usage of this table:
"SELECT ctid, xmin, xmax, * FROM mxofftest");
It should be
"SELECT id, n_updated, * FROM mxofftest");

The fix is very simple, the patch attached.

What's wrong with the query it currently uses?

- Heikki