From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Schmidt <peterjs@home.com>
Cc: Sean Chittenden <sean@chittenden.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: FreeBSD upgrade causes performance degredation
Date: Wed, 31 Oct 2001 22:55:06 -0500
Message-ID: <15012.1004586906@sss.pgh.pa.us> (raw)
In-Reply-To: <NEBBJGEFMKLFIKBKBDIDEEAJCOAA.peterjs@home.com>
References: <NEBBJGEFMKLFIKBKBDIDEEAJCOAA.peterjs@home.com>
"Peter Schmidt" <peterjs@home.com> writes:
> Old function was something like this:
> SELECT COL1 FROM TABLE WHERE COL2 = SP_FUNCTION(ARG, ARG, ARG, ...)
> The query was modified so that the call to the second function was executed
> as a subselect (and thereby executed only once for all rows in the first
> select?):
> SELECT COL1 FROM TABLE WHERE COL2 = (SELECT SP_FUNCTION(ARG, ARG,
> ARG...))
This seems like a rather klugy substitute for marking the function
"iscachable". You might want to read up on that in the CREATE FUNCTION
documentation.
I don't see why an OS change would affect this though; I think you still
have more digging to do to understand the issue. Did you reinstall
Postgres after the OS update, and if so is it possible you neglected to
do VACUUM ANALYZE after reloading the database?
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, peterjs@home.com, sean@chittenden.org
Subject: Re: FreeBSD upgrade causes performance degredation
In-Reply-To: <15012.1004586906@sss.pgh.pa.us>
References: <NEBBJGEFMKLFIKBKBDIDEEAJCOAA.peterjs@home.com> <15012.1004586906@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