From: Dave Cramer <pg@fastcrypt.com>
To: bitrunner <bitrunner@katamail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: help lock record
Date: Wed, 24 May 2006 09:01:35 -0400
Message-ID: <E9173276-A520-4CDF-96E6-B909329783AF@fastcrypt.com> (raw)
In-Reply-To: <4474565B.3070208@katamail.com>
References: <4474565B.3070208@katamail.com>
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
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: pg@fastcrypt.com, bitrunner@katamail.com
Subject: Re: help lock record
In-Reply-To: <E9173276-A520-4CDF-96E6-B909329783AF@fastcrypt.com>
References: <4474565B.3070208@katamail.com> <E9173276-A520-4CDF-96E6-B909329783AF@fastcrypt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox