From: Tom Lane <tgl@sss.pgh.pa.us>
To: Vincenzo Romano <vincenzo.romano@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: function call vs staright query
Date: Mon, 19 Mar 2007 00:07:41 -0400
Message-ID: <21145.1174277261@sss.pgh.pa.us> (raw)
In-Reply-To: <200703180812.49164.Vincenzo.Romano@gmail.com>
References: <200703180750.54703.Vincenzo.Romano@gmail.com>
<200703180812.49164.Vincenzo.Romano@gmail.com>
Vincenzo Romano <vincenzo.romano@gmail.com> writes:
> How can I delay the query planner decisions until the actual query is to be
> done inside the function body?
Use plpgsql's EXECUTE. AFAIR there is no way in a SQL-language function.
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, vincenzo.romano@gmail.com
Subject: Re: function call vs staright query
In-Reply-To: <21145.1174277261@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