This patch(gtt_v21_pg13.patch) is not applicable on PG HEAD, I hope you have prepared the patch on top of some previous commit.
Could you please rebase the patch which we can apply on HEAD ?
Yes, It looks like the built-in functions are in conflict with new code.
In this below scenario, pg_dump is failing -
test=# CREATE database foo; CREATE DATABASE test=# \c foo You are now connected to database "foo" as user "tushar". foo=# CREATE GLOBAL TEMPORARY TABLE bar(c1 bigint, c2 bigserial) on commit PRESERVE rows; CREATE TABLE foo=# \q
[tushar@localhost bin]$ ./pg_dump -Fp foo > /tmp/rf2 pg_dump: error: query to get data of sequence "bar_c2_seq" returned 0 rows (expected 1) [tushar@localhost bin]$