Re: Running the fdw test from the terminal crashes into the core-dump

Alvaro Herrera <alvherre@alvh.no-ip.org>

From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alena Rybakina <a.rybakina@postgrespro.ru>, Pgsql Hackers <pgsql-hackers@postgresql.org>, Amit Langote <amitlangote09@gmail.com>
Date: 2024-02-18T19:44:02Z
Lists: pgsql-hackers
On 2024-Feb-18, Tom Lane wrote:

> So I'd blame this on faulty handling of the zero-partitions case in
> the RTEPermissionInfo refactoring.  (I didn't bisect to prove that
> a61b1f748 is exactly where it broke, but I do see that the query
> successfully does nothing in v15.)

You're right, this is the commit that broke it.  It's unclear to me if
Amit is available to look at it, so I'll give this a look tomorrow if he
isn't.

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/
"Porque francamente, si para saber manejarse a uno mismo hubiera que
rendir examen... ¿Quién es el machito que tendría carnet?"  (Mafalda)



Commits

  1. Revise MERGE documentation

  2. MERGE ... DO NOTHING: require SELECT privileges

  3. Rework query relation permission checking