Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: BUG #2542: ALTER USER foo SET bar = func(baz) errors out



"David Fetter" <david(at)fetter(dot)org> writes:
> is there some way to let the right hand side of SET be the (TEXT) output of
> a function?

No.  SET is a utility command and utility commands generally don't do
expression evaluation.  (There are some specific reasons why not for
SET, but I won't get into that here.)

However, you can get the desired effect in various other ways; see the
set_config() function, or try updating the pg_settings view ...

			regards, tom lane



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group