pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Oscar Camuendo <oscar.dny86@hotmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: [PERFORMANCE] Performance index and table
Date: Fri, 22 Jul 2016 10:29:30 -0400
Message-ID: <21333.1469197770@sss.pgh.pa.us> (raw)
In-Reply-To: <BN3PR20MB04990FF1BE4ACCBC75924C71F00A0@BN3PR20MB0499.namprd20.prod.outlook.com>
References: <BN3PR20MB04990FF1BE4ACCBC75924C71F00A0@BN3PR20MB0499.namprd20.prod.outlook.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Oscar Camuendo <oscar.dny86@hotmail.com> writes:
> I'm working on Postgresql 9.5.3 and executed a query which takes 5 or 7 seconds and it should not take more than 0.30 milliseconds, the query is:

Have you ANALYZEd your tables lately?  Some of these estimated row counts
seem awfully far off for no very good reason.

			regards, tom lane


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



view thread (2+ messages)

Message-ID: <21333.1469197770@sss.pgh.pa.us>
Permalink:  ../21333.1469197770@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21333.1469197770@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, oscar.dny86@hotmail.com
  Subject: Re: [PERFORMANCE] Performance index and table
  In-Reply-To: <21333.1469197770@sss.pgh.pa.us>

* 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