| От | Tom Lane |
|---|---|
| Тема | Re: pgbench post-connection command |
| Дата | |
| Msg-id | 22002.1326384632@sss.pgh.pa.us обсуждение |
| Ответ на | Re: pgbench post-connection command (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>) |
| Список | pgsql-hackers |
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> 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.
Or use PGOPTIONS. I think there might be a use-case for this sort of
thing, but it's going to be more complicated than a SET or two; that's
why I think the feature ought to provide for a script not just a
command.
One particular use-case that comes to mind is executing \set commands
that only need to be done once, not once per iteration.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера