Re: Slow query in 8.2.0

From: Manuel Sugawara <masm(at)fciencias(dot)unam(dot)mx>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Slow query in 8.2.0
Date: 2006-12-14 00:32:03
Message-ID: m3wt4vgvwc.fsf@conexa.fciencias.unam.mx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> 8.2 is a good bit more conservative than previous releases about
> optimizing views involving volatile functions, so I'm wondering whether
> that could have anything to do with it ...

Oh well, you are indeed right, I went through the whole view hierarchy
and replaced all volatile function calls (I used to use a trick
defining a function to avoid a join that used to perform better in
earlier versions) with explicit JOINs, also I relabeled some functions
that were indeed STABLE and now everything is working fine. I was
amazed that some of those views predates Postgres support of JOINs, I
guees we have been using Postgres for a very long time :-).

Just out of curiosity, why the change?

Regards,
Manuel.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-12-14 00:47:29 Re: Slow query in 8.2.0
Previous Message Bruce Momjian 2006-12-13 23:59:26 Re: ALTER TABLE RENAME and primary key