Re: How to lock and unlock table in postgresql

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: How to lock and unlock table in postgresql
Дата
Msg-id 4EC4B5A5.1050403@hogranch.com
обсуждение исходный текст
Ответ на Re: How to lock and unlock table in postgresql  (Siva Palanisamy <siva_p@hcl.com>)
Список pgsql-general
On 11/16/11 11:16 PM, Siva Palanisamy wrote:
> Thanks for the solution. If I use currval('sqlname') in a loop of 70000 records, what will happen if a record is
insertedmanually? I guess it will alter the sequences, and wrong values/chain might be introduced in foreign tables in
thebelow function. Could you please clarify me on this? 

currval is consistent within the current transaction.  another
transaction will see the different currval that its generated.



--
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast


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

Предыдущее
От: Siva Palanisamy
Дата:
Сообщение: Re: How to lock and unlock table in postgresql
Следующее
От: Alban Hertroys
Дата:
Сообщение: Re: How to lock and unlock table in postgresql