We're trying to use a unique-identifier scheme in a database; and therefore we need to put a lock on a table. Is there some way to do this using the PyGres (python) adapter? -Morten ------------------------------------------------------------- How to reply to email: http://home.sol.no/~vidaandr/news/OBSquoting.html (norsk) http://home.sol.no/~vidaandr/news/FAQquoting.html (english) Who is the bigger fool? The fool or the fool who follows him?
> 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
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера