Re: Locking a table...

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: Locking a table...
Дата
Msg-id 1020438380.1473.19.camel@inspiron.cramers
обсуждение исходный текст
Ответ на Locking a table...  ("Scott Burgess" <ScottBurgess@diamondkey.com>)
Список pgsql-jdbc
Scott,

I just tried this with psql and the only thing that happens is that the
second query blocks until the lock is released. Within the first
transaction that locks the table you should be able to do anything. This
means that you need to be using the same connection that locks the
table.

Dave
On Fri, 2002-05-03 at 03:26, Scott Burgess wrote:
> Hi,
>     Quick question: In my Java app, when a database table is locked (LOCK TABLE
> tablename), if I go to access / change something in this table while it's
> locked, I get an error message back saying the relation does not exist, yet
> as soon as the lock is released, the java app works fine again.
>
> Is this supposed to work this way? Is it a JDBC specification or specific to
> the Postgres implementation?
>
>
> Thanks in advance,
>
> Scott Burgess.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
>




В списке pgsql-jdbc по дате отправления:

Предыдущее
От: arun vc
Дата:
Сообщение: problem in resultset relative method
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: problem in resultset relative method