Re: Prepare plan in plpgsql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jocelyn Turcotte <turcotte(dot)j(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Prepare plan in plpgsql
Date: 2005-07-06 19:55:59
Message-ID: 29930.1120679759@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Jocelyn Turcotte <turcotte(dot)j(at)gmail(dot)com> writes:
> i'm wondering if there is a way to prepare and execute a plan in a
> plpgsql function.

You do not need that because plpgsql automatically caches plans for
SQL statements appearing in a plpgsql function.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Ragnar Hafstað 2005-07-07 00:19:17 Re: left joins
Previous Message Jocelyn Turcotte 2005-07-06 19:32:26 Prepare plan in plpgsql