From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jocelyn Turcotte <turcotte.j@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Prepare plan in plpgsql
Date: Wed, 06 Jul 2005 15:55:59 -0400
Message-ID: <29930.1120679759@sss.pgh.pa.us> (raw)
In-Reply-To: <688c0b750507061232430f774e@mail.gmail.com>
References: <688c0b750507061232430f774e@mail.gmail.com>
Jocelyn Turcotte <turcotte.j@gmail.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
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: tgl@sss.pgh.pa.us, turcotte.j@gmail.com
Subject: Re: Prepare plan in plpgsql
In-Reply-To: <29930.1120679759@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