Re: [GENERAL] CREATE USER within function - Mailing list pgsql-bugs

From Tom Lane
Subject Re: [GENERAL] CREATE USER within function
Date
Msg-id 5287.1050385499@sss.pgh.pa.us
Whole thread Raw
In response to Re: [GENERAL] CREATE USER within function  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-bugs
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Jan, would you take a look at this?  It is reproducable.  I see the
> query sending "CREATE USER $1 ..." in the server logs.

Hardly requires much looking: utility statements don't take parameter
symbols, only literal constants.  The only way to do this from plpgsql
at the moment is with EXECUTE.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: [HACKERS] Bug #943: Server-Encoding from EUC_TW to
Next
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] CREATE USER within function