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

From Robert Creager
Subject Re: Query hitting empty tables taking 48 minutes
Date
Msg-id 58B4CE0F-203B-4F1D-8329-E269E68F616C@spectralogic.com
Whole thread Raw
In response to Re: Query hitting empty tables taking 48 minutes  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: Query hitting empty tables taking 48 minutes
List pgsql-general


On Jun 7, 2018, at 4:58 PM, David G. Johnston <david.g.johnston@gmail.com> wrote:

I would suspect that vacuuming these tables would solve your problem.  Whether there is an issue beyond a lack of vacuuming, or related to auto-vacuum, I am unsure.  Though at this point it may take a vacuum full to recover back to a sane state.  Though ANALYZE by itself should clear up the statistical discrepancy.

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.

Best,
Robert

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Code of Conduct plan
Next
From: "David G. Johnston"
Date:
Subject: Re: Query hitting empty tables taking 48 minutes