Fwd: Want to acquire lock on tables where primary of one table is foreign key on othere

From: Abhishek Tripathi <postforabhishek(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Fwd: Want to acquire lock on tables where primary of one table is foreign key on othere
Date: 2018-10-11 09:49:13
Message-ID: CACun91NMA2fcmnxY8LYEYQuuYywvzQAW4oxKQffq5PDPS87Oxw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general

---------- Forwarded message ---------
From: Abhishek Tripathi <postforabhishek(at)gmail(dot)com>
Date: Thu, Oct 11, 2018 at 3:18 PM
Subject: Want to acquire lock on tables where primary of one table is
foreign key on othere
To: <pgsql-bugs(at)lists(dot)postgresql(dot)org>

Dear Concerned Person,
I write this email to get the information about locking which I am not
getting from anywhere.
Actually I have acquired a "Select for Update" on a table whose id is
refrence as a foreign key on another table So I want those table won't
update until there is lock. Is it possible? Becuase postgres is acquiring
lock but AccessShare Lock which allow to write on those table How I
restrict this.

Thanks and Regards
Abhishek

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Alban Hertroys 2018-10-11 14:56:38 Re: Want to acquire lock on tables where primary of one table is foreign key on othere
Previous Message Abhishek Tripathi 2018-10-11 09:48:46 Want to acquire lock on tables where primary of one table is foreign key on othere

Browse pgsql-general by date

  From Date Subject
Next Message magodo 2018-10-11 10:08:31 parallel PITR for HA setup
Previous Message Abhishek Tripathi 2018-10-11 09:48:46 Want to acquire lock on tables where primary of one table is foreign key on othere