From: KÖPFERL Robert <robert.koepferl@sonorys.at>
To: pgsql-sql@postgresql.org
Subject: How does the planner treat a table function.
Date: Mon, 14 Mar 2005 12:26:16 +0100
Message-ID: <ED4E30DD9C43D5118DFB00508BBBA76EB1663C@neptun.sonorys.at> (raw)
Hi,
we have got some tables (uw?) and functions. One function is defined like
get_abc():
SELECT a,b,c from table_x;
What happens if I query something like
SELECT a,b from get_abc() where a=5;
while table_x is rather big?
Will PSQL at first query all records of table_x and then apply a where a=5
OR
will PSQL integrate it to a shorter query?
(In case there will be of course an intex over a to prevent sequential
search)
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: robert.koepferl@sonorys.at
Subject: Re: How does the planner treat a table function.
In-Reply-To: <ED4E30DD9C43D5118DFB00508BBBA76EB1663C@neptun.sonorys.at>
* 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