Re: strange (maybe) behaviour of table lock

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: Edoardo Panfili <edoardo(at)aspix(dot)it>
Cc: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: strange (maybe) behaviour of table lock
Date: 2006-12-08 19:25:00
Message-ID: 1165605900.3243.59.camel@state.g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 2006-12-08 at 09:16, Edoardo Panfili wrote:
> I have a question regarding a strange behaviour (for me, maybe that this
> is desidered feature) of LOCK on tables. I am using postgres 8.2
>
> I have a servlet that uses connection pools.
> The servlet do "LOCK table,table2,table3,table4"
> then do some select (I am testing the code, I will put the update in the
> future) an then I close instruction and connection.

Before we go any further, what are you trying to accomplish by this
lock? Perhaps there's a better "postgresqlish" approach than a table
lock.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message dananrg 2006-12-08 19:28:26 TOAD-like query builder for PostgreSQL?
Previous Message Tom Lane 2006-12-08 19:22:38 Re: strange (maybe) behaviour of table lock