From: Tomasz Myrta <jasiek@klaster.net>
To: PgSQL Performance ML <pgsql-performance@postgresql.org>
Subject: views vs pl/pgsql
Date: Mon, 06 Jan 2003 12:03:19 +0100
Message-ID: <3E196277.5020904@klaster.net> (raw)
Hi
1. I have plpgsql function having only one query returning 1 value. This
query joins some tables. I read, that plpgsql function saves execution
plan for all queries inside one database connection.
2. Instead of this I can create a view returning one row. How does
postgres work with views? When the plan is being created? What happens
to views which don't have explicit joins? What happens if I create index
on tables after creating a view?
Which one is better and when?
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: views vs pl/pgsql
In-Reply-To: <3E196277.5020904@klaster.net>
References: <3E196277.5020904@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