Question about locking - Mailing list pgsql-general

From Frank Millman
Subject Question about locking
Date
Msg-id 3b981248-1b14-70a1-6366-bc4879dd9e94@chagford.com
Whole thread Raw
Responses Re: Question about locking
List 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





pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: How to choose new master from slaves.?
Next
From: Ron
Date:
Subject: Re: Question about locking