From: Tomasz Myrta <jasiek@klaster.net>
To: PgSQL Performance ML <pgsql-performance@postgresql.org>
Subject: complicated queries in pl/pgsql
Date: Tue, 14 Jan 2003 11:54:59 +0100
Message-ID: <3E23EC83.9060802@klaster.net> (raw)
Hi
Sometimes my pl/pgsql functions have pretty complicated queries inside -
most of their execution time takes postgresql query planning.
I was wondering if I should change these queries into views? Does it
speed up function execution? Pl/pgsql saves execution plan for
connection lifetime. What happens to view planning - is it performed
during view creation, or rather each time view is quered?
Regards,
Tomasz Myrta
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: jasiek@klaster.net
Subject: Re: complicated queries in pl/pgsql
In-Reply-To: <3E23EC83.9060802@klaster.net>
References: <3E23EC83.9060802@klaster.net>
* 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