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

From Bruce Momjian
Subject Re: [GENERAL] CREATE USER within function
Date
Msg-id 200304152201.h3FM1DJ12568@candle.pha.pa.us
Whole thread Raw
List pgsql-bugs
Jan Wieck wrote:
> Tom Lane wrote:
> >
> > 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.
>
> We should add something to that extent to the FAQ :-)

Can we improve the error message reported to the user?

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: [GENERAL] CREATE USER within function
Next
From: Ennio-Sr
Date:
Subject: Re: Psql 'Expanded display (\x)' behaviour