On 27/11/2026 16:45, David Rowley wrote:
On Fri, 27 Nov 2026 at 22:02, Heikki Linnakangas <[email protected]> wrote:
The table_rescan() seems a bit ugly to me, I'd rather restructure the
loop slightly to avoid that. Maybe turn it from "while
(table_scan_getnextslot())" into "do {} while(table_scan_getnextslot())"
The comments could use some copy-editing. It mentions "pg_dump
--schema-only" explicitly, but I think it's even more generally true
that the table is likely to be empty. And the comment about temporal FKs
seems misplaced now, that should still be above the "if (!hasperiod)" check.
Thanks for looking. Updated patch attached.
The commit message subject sounds grammatically wrong to me. And the
comment about the check for zero rows sounds a little repetitive to me.
But those are just tiny nits and a matter of taste, LGTM otherwise.
(Thanks for working on this general area of making pg_upgrade faster!)
- Heikki