Re: BUG #18467: postgres_fdw (deparser) ignores LimitOption

Önder Kalacı <onderkalaci@gmail.com>

From: Önder Kalacı <onderkalaci@gmail.com>
To: Japin Li <japinli@hotmail.com>
Cc: Etsuro Fujita <etsuro.fujita@gmail.com>, pgsql-bugs@lists.postgresql.org
Date: 2024-05-16T09:02:27Z
Lists: pgsql-bugs
Hi Japin,

>
>
> Here is a poc patch to verify the above.
>
>
The patch looks reasonable to me, it is in line with `get_select_query_def()
<https://github.com/postgres/postgres/blob/8aee330af55d8a759b2b73f5a771d9d34a7b887f/src/backend/utils/adt/ruleutils.c#L5745-L5752>`
.

Though, probably requires a regression test.

Thanks,
Onder

Commits

  1. postgres_fdw: Refuse to send FETCH FIRST WITH TIES to remote servers.

  2. Revert temporal primary keys and foreign keys