Re: Patch for Prevent pg_dump/pg_restore from being affected by statement_timeout

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Patch for Prevent pg_dump/pg_restore from being affected by statement_timeout
Дата
Msg-id 4807A98B.2000600@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Patch for Prevent pg_dump/pg_restore from being affected by statement_timeout  ("Greg Sabino Mullane" <greg@turnstep.com>)
Список pgsql-hackers
Greg Sabino Mullane wrote:
> A use case would be dumping a large table and wanting to
> load it into the database, but wanting to stop the job if it
> is still running an hour from now, when a maintenance window
> is scheduled to start.

statement_timeout is pretty useless for that purpose, because it limits 
the time on a per-statement basis. It would cancel the COPY of any 
tables larger than X, but if you have multiple tables (a partitioned 
table, perhaps) just below the threshold, they would all be dumped even 
though the cumulative time is well beyond statement_timeout.

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


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: DROP DATABASE vs patch to not remove files right away
Следующее
От: "Stephen Denne"
Дата:
Сообщение: Re: count(*) performance improvement ideas