pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Igor Neyman <ineyman@perceptron.com>
To: ghiureai <isabella.ghiurea@nrc-cnrc.gc.ca>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: PG 9..5 index performance Q's
Date: Tue, 8 Nov 2016 18:56:30 +0000
Message-ID: <MWHPR07MB2877A11BAF961713DB4CCC21DAA60@MWHPR07MB2877.namprd07.prod.outlook.com> (raw)
In-Reply-To: <582219F1.9030502@nrc-cnrc.gc.ca>
References: <582219F1.9030502@nrc-cnrc.gc.ca>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>


-----Original Message-----
From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of ghiureai
Sent: Tuesday, November 08, 2016 1:31 PM
To: pgsql-admin@postgresql.org
Subject: [ADMIN] PG 9..5 index performance Q's

Hi List,

  running PGSQL 9.5.1 ( EL7) ,
we are seeing a issues with one of our SQL statement getting the wrong 
plan once in a while ( large temp tables being generate, exec time   
takes  > 3 minutes compared with fastes plan < 1 min), we want to undestand why a new/ expensive plan is been used instead of efficient one, there are not data changes on the tables, any tips where to look?
Second , I would like to know if when re-creating one index ( non pk ) on  a large table with already existing indexes, are  All tables statistics  being re-generated? ( there is a way to control persistency of old stats?)

Isabella

_____________________________________________________________________________________________________________________

Without seeing execution plans (both: fast and slow) it's hard to tell.
Auto_explain extension can help you catching these plans in PG log.
Your temp tables - are they being analyzed?

Regards,
Igor Neyman 


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



view thread (2+ messages)

Message-ID: <MWHPR07MB2877A11BAF961713DB4CCC21DAA60@MWHPR07MB2877.namprd07.prod.outlook.com>
Permalink:  ../MWHPR07MB2877A11BAF961713DB4CCC21DAA60@MWHPR07MB2877.namprd07.prod.outlook.com/
Also on:    postgresql.org/message-id/MWHPR07MB2877A11BAF961713DB4CCC21DAA60@MWHPR07MB2877.namprd07.prod.outlook.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: ineyman@perceptron.com, isabella.ghiurea@nrc-cnrc.gc.ca
  Subject: Re: PG 9..5 index performance Q's
  In-Reply-To: <MWHPR07MB2877A11BAF961713DB4CCC21DAA60@MWHPR07MB2877.namprd07.prod.outlook.com>
  References: <582219F1.9030502@nrc-cnrc.gc.ca> <MWHPR07MB2877A11BAF961713DB4CCC21DAA60@MWHPR07MB2877.namprd07.prod.outlook.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox