Re: pgbench post-connection command - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pgbench post-connection command
Date
Msg-id 7321.1326398672@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgbench post-connection command  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: pgbench post-connection command  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Re: pgbench post-connection command  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
Simon Riggs <simon@2ndQuadrant.com> writes:
> On Thu, Jan 12, 2012 at 5:32 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> More like "\once ... any SQL command or meta command here ..."
>> if we want to extend the scripting language. �But I'd be perfectly happy
>> with a command-line switch that specifies a script file to be run once.

> Once per connection, yes?

Hmmm ... good question.  Heikki was speculating about doing CREATE TABLE
or similar, which you'd want done only once period.  But I see no very
strong reason why cases like that couldn't be handled outside of
pgbench.  So yeah, once per connection.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: create index regression fail
Next
From: "Kevin Grittner"
Date:
Subject: Re: Remembering bug #6123