Re: Dynamic prepare possible in plpgsql? - Mailing list pgsql-sql

From Jonah H. Harris
Subject Re: Dynamic prepare possible in plpgsql?
Date
Msg-id 36e682920705011016u6af5810bv4fc3ad7feb0fbe8e@mail.gmail.com
Whole thread Raw
In response to Re: Dynamic prepare possible in plpgsql?  ("Collin Peters" <cadiolis@gmail.com>)
Responses Re: Dynamic prepare possible in plpgsql?  ("Collin Peters" <cadiolis@gmail.com>)
Re: Dynamic prepare possible in plpgsql?  (Jim Nasby <decibel@decibel.org>)
List pgsql-sql
On 5/1/07, Collin Peters <cadiolis@gmail.com> wrote:
> Is it faster to use PREPARE for the various INSERT statements inside a
> plpgsql function?  Perhaps I am wrong and it does its PREPARE work
> when the function is parsed.

IIRC, PLpgSQL automagically prepares each statement behind the scenes
on the first use.


-- 
Jonah H. Harris, Software Architect | phone: 732.331.1324
EnterpriseDB Corporation            | fax: 732.331.1301
33 Wood Ave S, 3rd Floor            | jharris@enterprisedb.com
Iselin, New Jersey 08830            | http://www.enterprisedb.com/


pgsql-sql by date:

Previous
From: "Collin Peters"
Date:
Subject: Re: Dynamic prepare possible in plpgsql?
Next
From: Dmitry Turin
Date:
Subject: Re: We all are looped on Internet: request + transport = invariant