Re: Parameter setting in multi-statement command; I got bit today

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jerry Sievers <gsievers19(at)comcast(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Parameter setting in multi-statement command; I got bit today
Date: 2012-04-01 20:32:49
Message-ID: 26382.1333312369@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jerry Sievers <gsievers19(at)comcast(dot)net> writes:
> Just FYI... maybe I'm the only Pg veteran who didn't know this but;
> Parameter settings in a multi-statement command are not in effect for
> later statements in same command.

This is not a true statement in general.

> They will take effect on later
> commands however as seen below.
> The 2 seconds statement timeout does nothing to prevent the sleep(10)
> from completing.

I believe what's happening there is that the timeout is applied to each
submitted query string, not individual statements within such a string.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2012-04-01 20:38:58 Re: Switching to Homebrew as recommended Mac install?
Previous Message Jay Levitt 2012-04-01 20:19:23 Re: Switching to Homebrew as recommended Mac install?