Re: BUG #17713: Assert with postgres_fdw in v12
Etsuro Fujita <etsuro.fujita@gmail.com>
From: Etsuro Fujita <etsuro.fujita@gmail.com>
To: Richard Guo <guofenglinux@gmail.com>
Cc: tharakan@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2022-12-14T10:02:58Z
Lists: pgsql-bugs
Hi Richard, On Tue, Dec 13, 2022 at 12:20 PM Richard Guo <guofenglinux@gmail.com> wrote: > On Mon, Dec 12, 2022 at 7:10 PM PG Bug reporting form <noreply@postgresql.org> wrote: >> This is a repro that triggers an assert (only) in REL_12_STABLE. In >> particular the issue seems to have begun after this commit - >> 08d2d58a2a1c8ef8d39e8132d39ee14a1d029500. The foreign table >> is empty so am unsure if Assert()'s expectations are valid. >> >> Since all versions v13+ seem to work okay, it is possible that a future >> bug-fix was not backpatched far enough to v12. > > Yes, I think it is 5e7fa189e, which should be back-patched to v12. That was also pointed out by Robins: https://www.postgresql.org/message-id/CAEP4nAza%2B0fTCLkgkKYux3JDo3tUBTQORehP%2BaCxSNURpSFpHw%40mail.gmail.com Will back-patch to v12 as well. Thanks for looking at this! Best regards, Etsuro Fujita
Commits
-
postgres_fdw: Fix assertion in estimate_path_cost_size().
- 69f75bf825f8 12.14 landed
-
postgres_fdw: Fix costing of pre-sorted foreign paths with local stats.
- 08d2d58a2a1c 12.0 cited