| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Sami Imseih <samimseih(at)gmail(dot)com> |
| Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, Jeff Davis <pgsql(at)j-davis(dot)com>, Jeff Davis <jdavis(at)postgresql(dot)org>, pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: pgsql: Trial fix for old cross-version upgrades. |
| Date: | 2025-02-28 17:54:57 |
| Message-ID: | 2768649.1740765297@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Sami Imseih <samimseih(at)gmail(dot)com> writes:
> I was running "make check-world" this morning on a machine that has an
> old version of perl, 5.16, and the check-world was hung on
> /usr/bin/perl t/002_pg_upgrade.pl.
Interesting!
> and specifically, the process hangs with this specific change.
> - $dump =~ s ['version', '\d+'::integer,]
> - ['version', '000000'::integer,]mg;
> + $dump =~ s {(^\s+'version',) '\d+'::integer,$}
> + {$1 '000000'::integer,}mg;
5.16 is still supported according to our install instructions,
so let's see if we can adjust that regex so it works with 5.16.
The first thing I'd try is
- $dump =~ s {(^\s+'version',) '\d+'::integer,$}
+ $dump =~ s {^(\s+'version',) '\d+'::integer,$}
since I notice we mostly don't put ^ inside capture parens elsewhere.
Are you in a position to test that?
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Haas | 2025-02-28 18:08:10 | pgsql: Fix missing space in EXPLAIN ANALYZE output. |
| Previous Message | Sami Imseih | 2025-02-28 17:12:41 | Re: pgsql: Trial fix for old cross-version upgrades. |