agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: gmb <gmbouwer@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: View not using index
Date: Tue, 15 Sep 2015 21:45:44 -0700 (MST)
Message-ID: <1442378744681-5866097.post@n5.nabble.com> (raw)
In-Reply-To: <CAOBG12=eaYK5Zsgdu9Oes3s5jeQv8Feb9arMKBR6rk+pOERiNg@mail.gmail.com>
References: <1442318204445-5865953.post@n5.nabble.com>
<CAOBG12=eaYK5Zsgdu9Oes3s5jeQv8Feb9arMKBR6rk+pOERiNg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
Thanks for the reply, Brice.
Brice André wrote
> - If your test DB has so few data that it is not efficient to use the
> index, this last will not be used. You should probably try to insert
> more
> data before performing the test
> - the query planner uses table statistics to decide if it uses an
> index.
> But, if those statistics are not up-to-date, the choice can be not
> optimal.
> You should maybe try to look at 'Analyse' command to get more info :
As I said, the data in my production env is populated but I'm getting the
same results, even after running ANALYZE on the tables.
--
View this message in context: http://postgresql.nabble.com/View-not-using-index-tp5865953p5866097.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
view thread (4+ messages)
Message-ID: <1442378744681-5866097.post@n5.nabble.com>
Permalink: ../1442378744681-5866097.post@n5.nabble.com/
Also on: postgresql.org/message-id/1442378744681-5866097.post@n5.nabble.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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: gmbouwer@gmail.com
Subject: Re: View not using index
In-Reply-To: <1442378744681-5866097.post@n5.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox