Question about locking

From: Frank Millman <frank(at)chagford(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Question about locking
Date: 2022-08-07 05:30:00
Message-ID: 3b981248-1b14-70a1-6366-bc4879dd9e94@chagford.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all

Apologies if this is an FAQ, but I could not find the answer I was
looking for.

I want to run two SELECTs, one immediately after the other.

I want to ensure that no other process updates the database in between
the two.

What is the best way to achieve this?

Thanks

Frank Millman

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2022-08-07 05:54:28 Re: Question about locking
Previous Message Ron 2022-08-06 21:13:08 Re: How to choose new master from slaves.?