Re: function call vs staright query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Vincenzo Romano <vincenzo(dot)romano(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: function call vs staright query
Date: 2007-03-19 04:07:41
Message-ID: 21145.1174277261@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Vincenzo Romano <vincenzo(dot)romano(at)gmail(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Vincenzo Romano 2007-03-19 10:18:55 Re: function call vs staright query
Previous Message Michael Stone 2007-03-18 18:49:06 Re: Performance Tuning and Disk Cache