pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mitch Pirtle <mitch.pirtle@gmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Joining views disables indexes?
Date: Tue, 01 Nov 2005 18:28:44 -0500
Message-ID: <29380.1130887724@sss.pgh.pa.us> (raw)
In-Reply-To: <330532b60511011516u3709d826w391a4ac167c6967b@mail.gmail.com>
References: <330532b60511011516u3709d826w391a4ac167c6967b@mail.gmail.com>

Mitch Pirtle <mitch.pirtle@gmail.com> writes:
> I have a client that is testing an internal data platform, and they
> were happy with PostgreSQL until they tried to join views - at that
> time they discovered PostgreSQL was not using the indexes, and the
> queries took 24 hours to execute as a result.

You'll need to provide some actual details if you want useful comments.
Let's see the table schemas, the view definitions, and the EXPLAIN plan
(I'll spare you a request for EXPLAIN ANALYZE given that it'd take 24
hours to get ;-) ... although some estimate of the number of rows
expected would be helpful).  And I trust they remembered to ANALYZE the
underlying tables first?  Also, which PG version exactly?

			regards, tom lane



view thread (4+ messages)

Message-ID: <29380.1130887724@sss.pgh.pa.us>
Permalink:  ../29380.1130887724@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29380.1130887724@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, mitch.pirtle@gmail.com
  Subject: Re: Joining views disables indexes?
  In-Reply-To: <29380.1130887724@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