pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rickard Sjöström <rickard.sjostrom@bluebottle.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Performance on views
Date: Fri, 30 Mar 2007 12:14:22 -0400
Message-ID: <20418.1175271262@sss.pgh.pa.us> (raw)
In-Reply-To: <1175253570.460cf2427984c@mail.bluebottle.com>
References: <1175253570.460cf2427984c@mail.bluebottle.com>

Rickard =?iso-8859-1?b?U2r2c3Ry9m0=?= <rickard.sjostrom@bluebottle.com> writes:
> I have a view that is really slow and I ca easily work around the slowness by bypassing the view and query the real table directly.

Let's see the exact definition of the view and EXPLAIN ANALYZE results
for doing it both ways.  Also, what PG version is this?

			regards, tom lane



view thread (2+ messages)

Message-ID: <20418.1175271262@sss.pgh.pa.us>
Permalink:  ../20418.1175271262@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20418.1175271262@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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rickard.sjostrom@bluebottle.com
  Subject: Re: Performance on views
  In-Reply-To: <20418.1175271262@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