Re: CREATE SUBSCRIPTION ... SERVER vs. pg_dump, etc.

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Noah Misch <noah(at)leadboat(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: CREATE SUBSCRIPTION ... SERVER vs. pg_dump, etc.
Date: 2026-07-28 22:36:08
Message-ID: 2487ddcd737d4fc8e408e87aa9ad4365eed3bbb3.camel@j-davis.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 2026-07-10 at 12:59 -0700, Noah Misch wrote:
> An Opus 4.8 review of commit 8185bb5 found two pg_dump+restore
> failure
> scenarios, visible in the attached test patch.  (The patch also tests
> a
> REASSIGN OWNED finding, for which I started a distinct thread
> postgr.es/m/flat/20260710192533(dot)4f(dot)noahmisch(at)microsoft(dot)com).
>
> Opus also emitted the attached report about these findings and
> others.  I
> didn't examine the others closely.  Finding-19, about invalidation
> callbacks,
> stood out as perhaps most exciting if true.

Partial patch series:

0001: Finding 10 preexisting issue: Add missing lock release for 
DROP OWNED BY (backport to 16)
0002: Finding 10 & 15: Improve & document DROP SERVER CASCADE
0003: Finding 3: Reject use_scram_passthrough for
subscription connections.

Robert, can you take a look at 0001, which fixes an issue introduced in
6566133c5f? I don't think it's major but it can retain the lock for
longer.

Regards,
Jeff Davis

Attachment Content-Type Size
v2-0001-Fix-lock-release-for-role-membership-grants-in-DR.patch text/x-patch 1.1 KB
v2-0002-Improve-DROP-SERVER-handling-of-dependent-subscri.patch text/x-patch 5.5 KB
v2-0003-postgres_fdw-reject-use_scram_passthrough-for-sub.patch text/x-patch 3.5 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Smith 2026-07-28 23:14:36 Re: PSQL schema "describe" \dn is not escaping quotes
Previous Message Tristan Partin 2026-07-28 22:28:32 Re: Add pg_stat_kind_info system view