X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id B01D79FA2DB for ; Wed, 24 May 2006 10:01:47 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 74725-04 for ; Wed, 24 May 2006 10:01:38 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 52C989F9F8F for ; Wed, 24 May 2006 10:01:38 -0300 (ADT) Received: (qmail 934 invoked from network); 24 May 2006 13:01:37 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 24 May 2006 13:01:37 -0000 In-Reply-To: <4474565B.3070208@katamail.com> References: <4474565B.3070208@katamail.com> Mime-Version: 1.0 (Apple Message framework v750) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: help lock record Date: Wed, 24 May 2006 09:01:35 -0400 To: bitrunner X-Mailer: Apple Mail (2.750) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/124 X-Sequence-Number: 15252 On 24-May-06, at 8:49 AM, bitrunner wrote: > >> I must set up of the parameters to postgresql.conf? > > > Yes, you must set this in postgresql.conf > > Excuse but this is the parameter that I must set up? Yes, but be aware, this is not an optimal solution. All kinds of statements will time out on this. For instance if you set this to 1000ms then try to do a vacuum it will likely timeout. However you can use the set command from java on the connection to set the timeout per connection con = Database.getConnection() stmt = con.getStatement stmt.execute("set statement_timeout=1000"); do your locking code con.close() Dave > > thanks a lot. > > ---------------------------(end of > broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq >