Re: "Canceling authentication due to timeout" with idle transaction and reindex

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: "Canceling authentication due to timeout" with idle transaction and reindex
Date: 2017-09-15 11:57:49
Message-ID: 20170915115749.GI14491@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kenneth Marshall 2017-09-15 12:55:52 Re: looking for a globally unique row ID
Previous Message Ron Johnson 2017-09-15 11:49:06 Re: "Canceling authentication due to timeout" with idle transaction and reindex