Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z0xI7-0007Fl-LF for pgsql-general@arkaria.postgresql.org; Fri, 05 Jun 2015 19:28:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z0xI7-0004PK-5Q for pgsql-general@arkaria.postgresql.org; Fri, 05 Jun 2015 19:28:31 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z0xI4-0004MQ-VZ; Fri, 05 Jun 2015 19:28:29 +0000 Received: from cerberus.pinpointresearch.com ([66.7.238.130] helo=polaris.pinpointresearch.com) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Z0xI2-0008LS-Am; Fri, 05 Jun 2015 19:28:27 +0000 Received: from [192.168.1.179] (betelgeuse.pinpointresearch.com [192.168.1.179]) by polaris.pinpointresearch.com (Postfix) with ESMTP id 2C599E00EC82; Fri, 5 Jun 2015 12:28:23 -0700 (PDT) Message-ID: <5571F857.8000107@pinpointresearch.com> Date: Fri, 05 Jun 2015 12:28:23 -0700 From: Steve Crawford User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: "Sheena, Prabhjot" , "pgsql-general@postgresql.org" , "pgsql-performance@postgresql.org" Subject: Re: Re: Query running slow for only one specific id. (Postgres 9.3) version References: <13E39D789E19FF4E9A87F6D456F3F982E86DCC@SEAMBX02.sea.corp.int.untd.com> <13E39D789E19FF4E9A87F6D456F3F982E87042@SEAMBX02.sea.corp.int.untd.com> In-Reply-To: <13E39D789E19FF4E9A87F6D456F3F982E87042@SEAMBX02.sea.corp.int.untd.com> Content-Type: multipart/alternative; boundary="------------050308010304050302090605" X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org This is a multi-part message in MIME format. --------------050308010304050302090605 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 06/05/2015 11:38 AM, Sheena, Prabhjot wrote: > > When I run vacuum analyze it fixes the problem but after 1 or 2 days > the problem comes back > > Is autovacuum running and using what settings? (select name, setting from pg_settings where name ~ 'autovacuum' Konsole output or name ~ 'statistics';) Cheers, Steve P.S. The convention on the PostgreSQL mailing lists it to bottom-post, not top-post replies. Konsole outpor name ~ 'statistics';) --------------050308010304050302090605 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
On 06/05/2015 11:38 AM, Sheena, Prabhjot wrote:

When I run vacuum analyze it fixes the problem but after 1 or 2 days the problem comes back

=A0


Is autovacuum running and using what settings?

(select name, setting from pg_settings where name ~ 'autovacuum' Konsole output or name ~ 'statistics';)

Cheers,
Steve

P.S. The convention on the PostgreSQL mailing lists it to bottom-post, not top-post replies.
Konsole outpor name ~ 'statistics';) --------------050308010304050302090605--