Re: statement timeout test case

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Medi Montaseri <medi(dot)montaseri(at)intransa(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: statement timeout test case
Date: 2002-12-13 02:53:22
Message-ID: 200212130253.gBD2rMC04726@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Yep, it should work, though rememger that LOCK only locks for the
duration of the transaction.

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

Medi Montaseri wrote:
> I'm trying to develop a test case to see how the statement_timeout in
> 7.3 works...
>
> Can I just say...
>
> make the change in $PGDATA/postgresql.conf, pg_ctl reload
>
> In psql(1) session one say 'lock table test in EXCLUSIVE mode'
> In psql(1) session two say 'select * from test'
>
> What I'm expecting is that sessoion two should block and then timeout....
>
> Thanks
>
> PS: I don't see any unlock commands....does it automagically unlock the
> table
> when psql(1) session is closed.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jean-Christian Imbeault 2002-12-13 05:59:48 Re: infinity as a date
Previous Message eric@did-it.com 2002-12-13 02:25:36 Re: Moving Indices to a different disk and various