Re: pgbench post-connection command

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pgbench post-connection command
Date: 2012-01-12 20:04:32
Message-ID: 7321.1326398672@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Simon Riggs <simon(at)2ndQuadrant(dot)com> writes:
> On Thu, Jan 12, 2012 at 5:32 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2012-01-12 20:24:55 Re: Remembering bug #6123
Previous Message Alvaro Herrera 2012-01-12 19:38:02 Re: create index regression fail