Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

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: Fri, 21 Sep 2007 09:32:51 +0200
  • Message-id: <46F373A3(dot)2030701(at)campana(dot)vi(dot)it>

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: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group