Re: quoting internal variable names

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ron Peterson <rpeterso(at)mtholyoke(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: quoting internal variable names
Date: 2005-02-20 05:04:56
Message-ID: 11274.1108875896@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ron Peterson <rpeterso(at)mtholyoke(dot)edu> writes:
> So it seems like the single quotes are causing :v_encoding to be read as
> a string literal for ENCODING, but they don't do that for WITH PASSWORD.

Yeah, they behave the same in both cases. If you'd experimented you
would have found that the password was set to ":v_dbpass", presumably
not what you wanted, but it's OK as far as CREATE USER knows.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-02-20 05:32:31 Re: PGSQL 8.0.1 Win 2K Installation Problem
Previous Message Net Virtual Mailing Lists 2005-02-20 02:18:37 Triggers, again.. ;-)