Re: Should we skip foreign key checks in binary upgrade mode?

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Should we skip foreign key checks in binary upgrade mode?
Date: 2026-12-01 18:35:21
Message-ID: 464ba384-3c5a-470d-b6af-f1e79aa859b8@dunslane.net
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 2026-12-01 Tu 12:17 AM, Tom Lane wrote:
> David Rowley <dgrowleyml(at)gmail(dot)com> writes:
>> I've adjusted the commit message and pushed.
> I find that this patch broke contrib/sepgsql's regression test,
> evidently because the new short-circuit path skips making some
> accesses that the test is expecting to happen. I suggest
> the attached patch.
>
> (Apparently, we do not currently have any buildfarm members
> running sepgsql's tests, hence no complaints from that
> quarter. This isn't great.)

Wouldn't it be better to keep doing the check, as in the attached?

(crake is now running these tests)

cheers

andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com

Attachment Content-Type Size
0001-sepgsql-keep-exercising-the-FK-validation-query-in-t.patch text/x-patch 4.5 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2026-12-01 18:37:06 Re: pg_plan_advice: add NO_ scan and join method tags
Previous Message Baji Shaik 2026-12-01 18:26:27 Re: Parallel heap vacuum