pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Collin Peters <cadiolis@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Dynamic prepare possible in plpgsql?
Date: Mon, 30 Apr 2007 16:58:54 -0700
Message-ID: <df01c91b0704301658r71068bf1jea60b8f6d6c5769c@mail.gmail.com> (raw)

Is it possible to have a dynamic PREPARE statement in plpgsql?

Something like

	PREPARE users_plan ( || 'text, text' || ) AS
	INSERT INTO pp_users( || 'col1, col2' || )
	VALUES($1, $2);

Regards,
Collin



view thread (7+ messages)  latest in thread

Message-ID: <df01c91b0704301658r71068bf1jea60b8f6d6c5769c@mail.gmail.com>
Permalink:  ../df01c91b0704301658r71068bf1jea60b8f6d6c5769c@mail.gmail.com/
Also on:    postgresql.org/message-id/df01c91b0704301658r71068bf1jea60b8f6d6c5769c@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: cadiolis@gmail.com
  Subject: Re: Dynamic prepare possible in plpgsql?
  In-Reply-To: <df01c91b0704301658r71068bf1jea60b8f6d6c5769c@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