Re: BUG #19968: ALTER COLUMN TYPE fails with internal errors if a dependent object is dropped concurrently

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: Aman Ganapathy <aman(at)stack-auth(dot)com>
Cc: Kirill Reshke <reshkekirill(at)gmail(dot)com>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19968: ALTER COLUMN TYPE fails with internal errors if a dependent object is dropped concurrently
Date: 2026-12-05 05:06:29
Message-ID: CAGRkXqTotYoZ8mE9qTWP6uGsEb+40v67q5CRXhqu2TX0yUrRfg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Thanks for the patch. One more case needs the same guard. A policy on
another table can depend on the column through a subquery, and DROP
POLICY only locks that other table.

CREATE POLICY pol ON u USING (a IN (SELECT v FROM t));

With v2 and your injection point, dropping pol while the ALTER waits
still gives "could not find tuple for policy". Doing the same
missing_ok check in the PolicyRelationId branch fixes it.

Thanks,
Shihao

In response to

Browse pgsql-bugs by date

  From Date Subject
Previous Message shihao zhong 2026-12-05 05:05:29 Re: dbase_redo: XLOG_DBASE_CREATE_FILE_COPY replay empties live database