From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Jan Wieck <JanWieck(at)Yahoo(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Michal Taborsky <M(dot)Taborsky(at)sh(dot)cvut(dot)cz>, Bugs for PostgreSQL <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: [GENERAL] CREATE USER within function |
Date: | 2003-04-15 22:01:13 |
Message-ID: | 200304152201.h3FM1DJ12568@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Jan Wieck wrote:
> Tom Lane wrote:
> >
> > Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Riaan van Jaarsveld | 2003-04-16 11:43:46 | PostgreSQL 7.3 Installation Error |
Previous Message | Tom Lane | 2003-04-15 05:44:59 | Re: [GENERAL] CREATE USER within function |