Re: How to lock a table

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: How to lock a table
Дата
Msg-id 39634850.1113C069@alumni.caltech.edu
обсуждение исходный текст
Ответ на How to lock a table  ("Morten W. Petersen" <morten@src.no>)
Список pgsql-general
> We're trying to use a unique-identifier scheme in a database; and
> therefore we need to put a lock on a table.

Are you sure? Please describe the problem which absolutely requires a
full table-level lock...

> Is there some way to do this using the PyGres (python) adapter?

select * from t1 where 1 = 0;

or

lock table t1;

                      - Thomas

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

Предыдущее
От: jprem
Дата:
Сообщение: help -- cursor inside a function
Следующее
От: "James L. Hall"
Дата:
Сообщение: pg respawning too fast