Re: Clarification regarding managing advisory locks in postgresql

2024-02-08 Thread Greg Sabino Mullane
On Thu, Jan 25, 2024 at 5:44 AM Sasmit Utkarsh wrote: > Therefore, locks acquired in one process (or transaction) do not directly > affect locks in another process (or transaction). > Ummaybe if you describe the exact problem you are trying to solve with advisory locks, we can find the best

Re: Clarification regarding managing advisory locks in postgresql

2024-02-08 Thread Merlin Moncure
On Thu, Jan 25, 2024 at 4:44 AM Sasmit Utkarsh wrote: > Okay Thanks. Also please help me understand the below scenarios > > From the above statement, I understand is (please correct if I'm wrong > here), When we fork a client process, each process gets its own database > connection or transaction

Re: Clarification regarding managing advisory locks in postgresql

2024-01-25 Thread Sasmit Utkarsh
Okay Thanks. Also please help me understand the below scenarios >From the above statement, I understand is (please correct if I'm wrong here), When we fork a client process, each process gets its own database connection or transaction context. Therefore, locks acquired in one process (or transacti

Re: Clarification regarding managing advisory locks in postgresql

2024-01-24 Thread Christophe Pettus
> On Jan 24, 2024, at 19:17, Sasmit Utkarsh wrote: > > Need your support on understanding advisory locks in Postgresql and what is > the best practice to have advisory locks and unlocks to work properly when we > have multiple process forked from single process? Advisory locks are a shared