satisfies_hash_partition crash

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: satisfies_hash_partition crash
Date: 2026-07-01 19:11:17
Message-ID: CA+TgmoY=J+=TzuqVV9CuJezT6e+HPE2=uhR8z6ryT-Ug8JjbVw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

This test case crashes the server for me:

CREATE TABLE hp (a int) PARTITION BY HASH (a);
SELECT satisfies_hash_partition('hp'::regclass, 1, 0, VARIADIC NULL::int[]);

I'm inclined to mostly blame my commit
f3b0897a1213f46b4d3a99a7f8ef3a4b32e03572, which fixed related problems
but overlooked this one. I think the fix should be simple, but since
that commit is from 2017, it will need to be back-patched all the way.

--
Robert Haas
EDB: http://www.enterprisedb.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2026-07-01 19:17:55 WIP: replacing join_collapse_limit with "join hardness" estimate
Previous Message Pavel Stehule 2026-07-01 18:21:24 Re: proposal - queryid can be used as filter for auto_explain