Re: How to lock and unlock table in postgresql

Поиск
Список
Период
Сортировка
От Siva Palanisamy
Тема Re: How to lock and unlock table in postgresql
Дата
Msg-id 90F0F47595235141A4380FCF01B0185B2243F4BC93@CHN-HCLT-EVS07.HCLT.CORP.HCL.IN
обсуждение исходный текст
Ответ на Re: How to lock and unlock table in postgresql  (John R Pierce <pierce@hogranch.com>)
Ответы Re: How to lock and unlock table in postgresql
Список pgsql-general
Hi John,

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? 

Thanks and Regards,
Siva.

-----Original Message-----
From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-owner@postgresql.org] On Behalf Of John R Pierce
Sent: Thursday, November 17, 2011 12:05 PM
To: pgsql-general@postgresql.org
Subject: Re: [GENERAL] How to lock and unlock table in postgresql

On 11/16/11 10:23 PM, John R Pierce wrote:
> use nextval('seqname')

sorry, I meant, currval('seqname')   oooops.



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


--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

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

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