queston about locking

From: Ottavio Campana <ottavio(at)campana(dot)vi(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: queston about locking
Date: 2007-09-21 07:32:51
Message-ID: 46F373A3.2030701@campana.vi.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2007-09-21 07:34:52 Re: Postgresql and SSL
Previous Message Charles.Hou 2007-09-21 05:46:51 about the PostgreSql loading?