Re: Soundness of strategy for detecting locks acquired by DDL statements - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Soundness of strategy for detecting locks acquired by DDL statements
Date
Msg-id ffa554b9-b945-41b9-8484-3343f172bd01@aklaver.com
Whole thread Raw
In response to Soundness of strategy for detecting locks acquired by DDL statements  (Agis Anastasopoulos <agis.anast@gmail.com>)
List pgsql-general

On 5/6/25 2:06 AM, Agis Anastasopoulos wrote:
> Hello! I'd like to "preflight" a given schema migration (i.e. one or 
> more DDL statements) before applying it to the production database (e.g. 
> for use in a CI pipeline). I'm thinking of a strategy and would like to 
> know about its soundness.

> Do you think this is a robust way to detect the locks that were 
> acquired? Are there any caveats/drawbacks/flaws in this strategy?


Why not just read this?:

https://www.postgresql.org/docs/current/explicit-locking.html

> 
> Thanks in advance
> 
> 
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com



pgsql-general by date:

Previous
From: Matthew Dennison
Date:
Subject: pgdg-redhat-repo-42.0-52PGDG.noarch.rpm missing
Next
From: Achilleas Mantzios
Date:
Subject: Re: Soundness of strategy for detecting locks acquired by DDL statements