Re: [GENERAL] "Canceling authentication due to timeout" with idletransaction and reindex

Поиск
Список
Период
Сортировка
От Justin Pryzby
Тема Re: [GENERAL] "Canceling authentication due to timeout" with idletransaction and reindex
Дата
Msg-id 20170915115749.GI14491@telsasoft.com
обсуждение исходный текст
Ответ на Re: [GENERAL] "Canceling authentication due to timeout" with idletransaction and reindex  (Ron Johnson <ron.l.johnson@cox.net>)
Список pgsql-general
On Fri, Sep 15, 2017 at 06:49:06AM -0500, Ron Johnson wrote:
> On 09/15/2017 06:34 AM, Justin Pryzby wrote:
> [snip]
> >But you might consider: 1) looping around tables/indices rather than "REINDEX
> >DATABASE", and then setting a statement_timeout=9s for each REINDEX statement;
> 
> Is there a way to do that within psql?  (Doing it from bash is trivial, but
> I'd rather do it from SQL.)

Not that I know, but it wouldn't help me, since our script also calls pg_repack
(for indices on system and some other tables), and also has logic to handle
differently historic partition tables.

Justin


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

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

Предыдущее
От: Ron Johnson
Дата:
Сообщение: Re: [GENERAL] "Canceling authentication due to timeout" with idletransaction and reindex
Следующее
От: Kenneth Marshall
Дата:
Сообщение: Re: [GENERAL] looking for a globally unique row ID