Re: pgbench post-connection command

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: pgbench post-connection command
Дата
Msg-id 4F0F019C.1070701@enterprisedb.com
обсуждение исходный текст
Ответ на Re: pgbench post-connection command  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pgbench post-connection command  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 12.01.2012 17:26, Tom Lane wrote:
> Simon Riggs<simon@2ndQuadrant.com>  writes:
>> New -x option for pgbench executes the given command once after
>> connection of each session.

If it's just for SET, you could just put the GUCs in postgresql.conf.

> This seems rather poorly designed, mainly because there's no reason to
> think that a single command would be sufficient.
>
> What would make more sense to me is to add an option for a one-time
> script, or possibly extend the script language to allow marking some
> commands as "do once".

Hmm, that might be handy. I wanted to write a some tests a while ago 
where each session operated on a separate table. With this, I could've 
put the CREATE TABLE statement in the statup-script.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: JSON for PG 9.2
Следующее
От: Satoshi Nagayasu
Дата:
Сообщение: Re: log messages for archive recovery progress