pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Reject currtid2() on unlogged tables during recovery. 7+ messages / 1 participants [nested] [flat]
* pgsql: Reject currtid2() on unlogged tables during recovery. @ 2026-10-21 18:13 Masahiko Sawada <msawada@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Masahiko Sawada @ 2026-10-21 18:13 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Reject currtid2() on unlogged tables during recovery. Commit 1e707d32564 made COPY TO report a proper error for unlogged tables during recovery. currtid2() has the same problem: it reads the table directly without going through the planner, so on a standby it failed with a low-level error for an unlogged table: ERROR: could not open file "base/5/16384": No such file or directory Check for this case and report the same error as SELECT. No test is added, as currtid2() is an undocumented internal function. Backpatch to all supported versions, like commit 1e707d32564. Reported-by: Masahiko Sawada <sawada.mshk@gmail.com> Author: Jim Jones <jim.jones@uni-muenster.de> Discussion: https://postgr.es/m/CAD21AoDNa7pL760_23AN_wYPMkWXCt+Kw0_vJAcci4R5DoCQGg@mail.gmail.com Backpatch-through: 14 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/fded90eec3ebab14a327a3c40263e2366eb3c42a Modified Files -------------- src/backend/utils/adt/tid.c | 7 +++++++ 1 file changed, 7 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Reject currtid2() on unlogged tables during recovery. @ 2026-10-21 18:13 Masahiko Sawada <msawada@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Masahiko Sawada @ 2026-10-21 18:13 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Reject currtid2() on unlogged tables during recovery. Commit 1e707d32564 made COPY TO report a proper error for unlogged tables during recovery. currtid2() has the same problem: it reads the table directly without going through the planner, so on a standby it failed with a low-level error for an unlogged table: ERROR: could not open file "base/5/16384": No such file or directory Check for this case and report the same error as SELECT. No test is added, as currtid2() is an undocumented internal function. Backpatch to all supported versions, like commit 1e707d32564. Reported-by: Masahiko Sawada <sawada.mshk@gmail.com> Author: Jim Jones <jim.jones@uni-muenster.de> Discussion: https://postgr.es/m/CAD21AoDNa7pL760_23AN_wYPMkWXCt+Kw0_vJAcci4R5DoCQGg@mail.gmail.com Backpatch-through: 14 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/702f218cb6330a348bf85452c3d3c2832d9831e8 Modified Files -------------- src/backend/utils/adt/tid.c | 7 +++++++ 1 file changed, 7 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Reject currtid2() on unlogged tables during recovery. @ 2026-10-21 18:13 Masahiko Sawada <msawada@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Masahiko Sawada @ 2026-10-21 18:13 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Reject currtid2() on unlogged tables during recovery. Commit 1e707d32564 made COPY TO report a proper error for unlogged tables during recovery. currtid2() has the same problem: it reads the table directly without going through the planner, so on a standby it failed with a low-level error for an unlogged table: ERROR: could not open file "base/5/16384": No such file or directory Check for this case and report the same error as SELECT. No test is added, as currtid2() is an undocumented internal function. Backpatch to all supported versions, like commit 1e707d32564. Reported-by: Masahiko Sawada <sawada.mshk@gmail.com> Author: Jim Jones <jim.jones@uni-muenster.de> Discussion: https://postgr.es/m/CAD21AoDNa7pL760_23AN_wYPMkWXCt+Kw0_vJAcci4R5DoCQGg@mail.gmail.com Backpatch-through: 14 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a5b925cfcc9bd2a5c7caf02887794b497ff2ab26 Modified Files -------------- src/backend/utils/adt/tid.c | 7 +++++++ 1 file changed, 7 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Reject currtid2() on unlogged tables during recovery. @ 2026-10-21 18:13 Masahiko Sawada <msawada@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Masahiko Sawada @ 2026-10-21 18:13 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Reject currtid2() on unlogged tables during recovery. Commit 1e707d32564 made COPY TO report a proper error for unlogged tables during recovery. currtid2() has the same problem: it reads the table directly without going through the planner, so on a standby it failed with a low-level error for an unlogged table: ERROR: could not open file "base/5/16384": No such file or directory Check for this case and report the same error as SELECT. No test is added, as currtid2() is an undocumented internal function. Backpatch to all supported versions, like commit 1e707d32564. Reported-by: Masahiko Sawada <sawada.mshk@gmail.com> Author: Jim Jones <jim.jones@uni-muenster.de> Discussion: https://postgr.es/m/CAD21AoDNa7pL760_23AN_wYPMkWXCt+Kw0_vJAcci4R5DoCQGg@mail.gmail.com Backpatch-through: 14 Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/3e53104dc32f78b4957beb582bed6e1bd19c685c Modified Files -------------- src/backend/utils/adt/tid.c | 7 +++++++ 1 file changed, 7 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Reject currtid2() on unlogged tables during recovery. @ 2026-10-21 18:13 Masahiko Sawada <msawada@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Masahiko Sawada @ 2026-10-21 18:13 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Reject currtid2() on unlogged tables during recovery. Commit 1e707d32564 made COPY TO report a proper error for unlogged tables during recovery. currtid2() has the same problem: it reads the table directly without going through the planner, so on a standby it failed with a low-level error for an unlogged table: ERROR: could not open file "base/5/16384": No such file or directory Check for this case and report the same error as SELECT. No test is added, as currtid2() is an undocumented internal function. Backpatch to all supported versions, like commit 1e707d32564. Reported-by: Masahiko Sawada <sawada.mshk@gmail.com> Author: Jim Jones <jim.jones@uni-muenster.de> Discussion: https://postgr.es/m/CAD21AoDNa7pL760_23AN_wYPMkWXCt+Kw0_vJAcci4R5DoCQGg@mail.gmail.com Backpatch-through: 14 Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/391fded1e563692f0ca14b9bd53d33e2e72783a6 Modified Files -------------- src/backend/utils/adt/tid.c | 7 +++++++ 1 file changed, 7 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Reject currtid2() on unlogged tables during recovery. @ 2026-10-21 18:13 Masahiko Sawada <msawada@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Masahiko Sawada @ 2026-10-21 18:13 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Reject currtid2() on unlogged tables during recovery. Commit 1e707d32564 made COPY TO report a proper error for unlogged tables during recovery. currtid2() has the same problem: it reads the table directly without going through the planner, so on a standby it failed with a low-level error for an unlogged table: ERROR: could not open file "base/5/16384": No such file or directory Check for this case and report the same error as SELECT. No test is added, as currtid2() is an undocumented internal function. Backpatch to all supported versions, like commit 1e707d32564. Reported-by: Masahiko Sawada <sawada.mshk@gmail.com> Author: Jim Jones <jim.jones@uni-muenster.de> Discussion: https://postgr.es/m/CAD21AoDNa7pL760_23AN_wYPMkWXCt+Kw0_vJAcci4R5DoCQGg@mail.gmail.com Backpatch-through: 14 Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/7f641940c27b6be184951c01d8762194ca2ba779 Modified Files -------------- src/backend/utils/adt/tid.c | 7 +++++++ 1 file changed, 7 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Reject currtid2() on unlogged tables during recovery. @ 2026-10-21 18:13 Masahiko Sawada <msawada@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Masahiko Sawada @ 2026-10-21 18:13 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Reject currtid2() on unlogged tables during recovery. Commit 1e707d32564 made COPY TO report a proper error for unlogged tables during recovery. currtid2() has the same problem: it reads the table directly without going through the planner, so on a standby it failed with a low-level error for an unlogged table: ERROR: could not open file "base/5/16384": No such file or directory Check for this case and report the same error as SELECT. No test is added, as currtid2() is an undocumented internal function. Backpatch to all supported versions, like commit 1e707d32564. Reported-by: Masahiko Sawada <sawada.mshk@gmail.com> Author: Jim Jones <jim.jones@uni-muenster.de> Discussion: https://postgr.es/m/CAD21AoDNa7pL760_23AN_wYPMkWXCt+Kw0_vJAcci4R5DoCQGg@mail.gmail.com Backpatch-through: 14 Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e16d102a4849df97383a853fba5c7dc7194c2dd6 Modified Files -------------- src/backend/utils/adt/tid.c | 7 +++++++ 1 file changed, 7 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2026-10-21 18:13 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-10-21 18:13 pgsql: Reject currtid2() on unlogged tables during recovery. Masahiko Sawada <msawada@postgresql.org> 2026-10-21 18:13 pgsql: Reject currtid2() on unlogged tables during recovery. Masahiko Sawada <msawada@postgresql.org> 2026-10-21 18:13 pgsql: Reject currtid2() on unlogged tables during recovery. Masahiko Sawada <msawada@postgresql.org> 2026-10-21 18:13 pgsql: Reject currtid2() on unlogged tables during recovery. Masahiko Sawada <msawada@postgresql.org> 2026-10-21 18:13 pgsql: Reject currtid2() on unlogged tables during recovery. Masahiko Sawada <msawada@postgresql.org> 2026-10-21 18:13 pgsql: Reject currtid2() on unlogged tables during recovery. Masahiko Sawada <msawada@postgresql.org> 2026-10-21 18:13 pgsql: Reject currtid2() on unlogged tables during recovery. Masahiko Sawada <msawada@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox