Dynamic prepare possible in plpgsql?

From: "Collin Peters" <cadiolis(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Dynamic prepare possible in plpgsql?
Date: 2007-04-30 23:58:54
Message-ID: df01c91b0704301658r71068bf1jea60b8f6d6c5769c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Collin Peters 2007-05-01 00:03:03 "is not distinct from" syntax error?
Previous Message David Flegl 2007-04-30 14:56:46 NEW to plpythonu function?