Re: How to lock and unlock table in postgresql - Mailing list pgsql-general

From Siva Palanisamy
Subject Re: How to lock and unlock table in postgresql
Date
Msg-id 90F0F47595235141A4380FCF01B0185B2243F4BC93@CHN-HCLT-EVS07.HCLT.CORP.HCL.IN
Whole thread Raw
In response to Re: How to lock and unlock table in postgresql  (John R Pierce <pierce@hogranch.com>)
Responses Re: How to lock and unlock table in postgresql  (John R Pierce <pierce@hogranch.com>)
List 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 by date:

Previous
From: John R Pierce
Date:
Subject: Re: How to lock and unlock table in postgresql
Next
From: John R Pierce
Date:
Subject: Re: How to lock and unlock table in postgresql