Re: Query hitting empty tables taking 48 minutes - Mailing list pgsql-general

From David G. Johnston
Subject Re: Query hitting empty tables taking 48 minutes
Date
Msg-id CAKFQuwbF8rxeB9L8T+wBkKiaujyDmHzuAQyyaV9aXFE9nGMAaA@mail.gmail.com
Whole thread Raw
In response to Re: Query hitting empty tables taking 48 minutes  (Robert Creager <robertc@spectralogic.com>)
Responses Re: Query hitting empty tables taking 48 minutes  (Robert Creager <robert@logicalchaos.org>)
List pgsql-general
On Fri, Jun 8, 2018 at 9:17 AM, Robert Creager <robertc@spectralogic.com> wrote:
A nightly VACUUM FULL which ran based on heuristics resolved the problem.  This would seem to point to a db problem more than an app problem?  I’m unsure how the app could have an affect of this magnitude on the database, although I’d love to be told otherwise.

​Not sure what the right answer is but its seems your database (those tables at least) are mis-configured for the workload being ​executed against them.  Significantly increasing the aggressiveness of the auto-vacuum process and/or inserting manual vacuum analyze commands into your application at appropriate times are probably necessary.

David J.

pgsql-general by date:

Previous
From: Robert Creager
Date:
Subject: Re: Query hitting empty tables taking 48 minutes
Next
From: Robert Creager
Date:
Subject: Re: Query hitting empty tables taking 48 minutes