queston about locking - Mailing list pgsql-general

From Ottavio Campana
Subject queston about locking
Date
Msg-id 46F373A3.2030701@campana.vi.it
Whole thread Raw
Responses Re: queston about locking
List pgsql-general
I'm writing a python script to update some tables in a db. My problem is
that I need to lock a couple of tables, perform several operations and
read the corresponding output.

I was thinking about lock in exclusive mode, but in the documentation I
found that it is valid only in a transaction. But since I need to
execute a command and read the output and so forth, I think I cannot use
a transaction.

What would you use to lock the table?


Attachment

pgsql-general by date:

Previous
From: "Amrita Prasad"
Date:
Subject: How to display geometry data using java and PostGIS
Next
From: "Albe Laurenz"
Date:
Subject: Re: Postgresql and SSL