Thread
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Show version of nodes in output of TAP tests
- 7e54eacc5c06 15.16 landed
- b38feca1ce00 16.12 landed
- 9d4f6d17f579 17.8 landed
- 28c5be4aecda 18.2 landed
- 83f2f8413e8d 19 (unreleased) landed
-
PG version is not seen in pg_upgrade test log
Potapov Alexander <a.potapov@postgrespro.com> — 2025-11-30T09:11:44Z
Hello! I ran pg_upgrade tests (make check -C src/bin/pg_upgrade) and found that test log does not contain PG version: (file: src/bin/pg_upgrade/tmp_check/log/regress_log_002_pg_upgrade) Name: old_node Data directory: /home/dev/code/postgrespro3/src/bin/pg_upgrade/tmp_check/t_002_pg_upgrade_old_node_data/pgdata Backup directory: /home/dev/code/postgrespro3/src/bin/pg_upgrade/tmp_check/t_002_pg_upgrade_old_node_data/backup This happens because $node->_set_pg_version is called after invocation of $node->dump_info. To fix it we should change line order in Cluster.pm file. The result looks like: Name: old_node Version: 19devel Data directory: /home/dev/code/postgrespro3/src/bin/pg_upgrade/tmp_check/t_002_pg_upgrade_old_node_data/pgdata Backup directory: /home/dev/code/postgrespro3/src/bin/pg_upgrade/tmp_check/t_002_pg_upgrade_old_node_data/backup The change I suggest is: --- a/src/test/perl/PostgreSQL/Test/Cluster.pm +++ b/src/test/perl/PostgreSQL/Test/Cluster.pm @@ -1647,10 +1647,10 @@ sub new or BAIL_OUT("could not create data directory \"$node->{_basedir}\": $!"); - $node->dump_info; - $node->_set_pg_version; + $node->dump_info; + my $ver = $node->{_pg_version}; Patch attached. Best regards, Alexander Potapov -
Re: PG version is not seen in pg_upgrade test log
Daniel Gustafsson <daniel@yesql.se> — 2025-12-02T10:22:36Z
> On 30 Nov 2025, at 10:11, Potapov Alexander <a.potapov@postgrespro.com> wrote: > I ran pg_upgrade tests (make check -C src/bin/pg_upgrade) and found that test log does not contain PG version: > - $node->dump_info; > - > $node->_set_pg_version; > + $node->dump_info; > + This seems like a correct change, reading the history around this code makes it seem like it just happened to end up in the wrong place in one of many refactorings. -- Daniel Gustafsson
-
Re: PG version is not seen in pg_upgrade test log
Michael Paquier <michael@paquier.xyz> — 2025-12-03T00:47:56Z
On Tue, Dec 02, 2025 at 11:22:36AM +0100, Daniel Gustafsson wrote: > This seems like a correct change, reading the history around this code makes it > seem like it just happened to end up in the wrong place in one of many > refactorings. Indeed. It looks like this should be backpatched down to v15 for two reasons: Cluster.pm exists since v15 and pg_upgrade has been converted to TAP since v15. -- Michael
-
Re: PG version is not seen in pg_upgrade test log
Potapov Alexander <a.potapov@postgrespro.com> — 2025-12-04T07:24:15Z
> Indeed. It looks like this should be backpatched down to v15 for two > reasons: Cluster.pm exists since v15 and pg_upgrade has been converted > to TAP since v15. I rebased the patch to be up-to-date with master. -- Alexander
-
Re: PG version is not seen in pg_upgrade test log
Potapov Alexander <a.potapov@postgrespro.com> — 2025-12-04T07:26:01Z
Updated patch attached.
-
Re: PG version is not seen in pg_upgrade test log
Michael Paquier <michael@paquier.xyz> — 2025-12-05T00:23:25Z
On Thu, Dec 04, 2025 at 10:26:01AM +0300, Potapov Alexander wrote: > Updated patch attached. Applied that down to v15. Thanks. -- Michael