Re: quoting internal variable names - Mailing list pgsql-general

From Tom Lane
Subject Re: quoting internal variable names
Date
Msg-id 11274.1108875896@sss.pgh.pa.us
Whole thread Raw
In response to quoting internal variable names  (Ron Peterson <rpeterso@mtholyoke.edu>)
List pgsql-general
Ron Peterson <rpeterso@mtholyoke.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

pgsql-general by date:

Previous
From: "Net Virtual Mailing Lists"
Date:
Subject: Triggers, again.. ;-)
Next
From: Tom Lane
Date:
Subject: Re: PGSQL 8.0.1 Win 2K Installation Problem