pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jonah H. Harris <jonah.harris@gmail.com>
To: Collin Peters <cadiolis@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: Dynamic prepare possible in plpgsql?
Date: Tue, 1 May 2007 13:16:42 -0400
Message-ID: <36e682920705011016u6af5810bv4fc3ad7feb0fbe8e@mail.gmail.com> (raw)
In-Reply-To: <df01c91b0705010952s4fb5fd5fpd9f4f61ff9673875@mail.gmail.com>
References: <df01c91b0704301658r71068bf1jea60b8f6d6c5769c@mail.gmail.com>
	<11208.1177980742@sss.pgh.pa.us>
	<df01c91b0705010952s4fb5fd5fpd9f4f61ff9673875@mail.gmail.com>

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/



view thread (7+ messages)  latest in thread

Message-ID: <36e682920705011016u6af5810bv4fc3ad7feb0fbe8e@mail.gmail.com>
Permalink:  ../36e682920705011016u6af5810bv4fc3ad7feb0fbe8e@mail.gmail.com/
Also on:    postgresql.org/message-id/36e682920705011016u6af5810bv4fc3ad7feb0fbe8e@mail.gmail.com

 · 

reply

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: jonah.harris@gmail.com, cadiolis@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: Dynamic prepare possible in plpgsql?
  In-Reply-To: <36e682920705011016u6af5810bv4fc3ad7feb0fbe8e@mail.gmail.com>

* 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