From: Tom Lane <tgl@sss.pgh.pa.us>
To: Wil Peters <info@itaudit.demon.nl>
Cc: pgsql-performance@postgresql.org
Subject: Re: Bad perfomance of pl/pgsql-function on new server
Date: Sat, 29 Mar 2003 18:25:43 -0500
Message-ID: <1001.1048980343@sss.pgh.pa.us> (raw)
In-Reply-To: <3E860D66.9030209@itaudit.demon.nl>
References: <3E860D66.9030209@itaudit.demon.nl>
Wil Peters <info@itaudit.demon.nl> writes:
> On the new server - although this server has far better specs! - the
> function does NOT perfom as well as on the old server. Searches take
> several minutes, where on the old server a few SECONDS where needed.
Is the new installation really equivalent to the old? I'd wonder about
differences in multibyte compilation option, database locale and
encoding, etc. Any of these could result in a huge hit in text-pushing
performance.
Another traditional post-upgrade problem is forgetting to VACUUM
ANALYZE; but that probably shouldn't affect this function, since it's
not issuing any database queries.
(Personally I'd have written this sort of function in plperl or pltcl,
either of which are far more appropriate for text-string-mashing than
plpgsql. But that's not really answering your question.)
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-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, info@itaudit.demon.nl
Subject: Re: Bad perfomance of pl/pgsql-function on new server
In-Reply-To: <1001.1048980343@sss.pgh.pa.us>
References: <3E860D66.9030209@itaudit.demon.nl> <1001.1048980343@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