Search Postgresql Archives

Re: can I define own variables?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Guy Rouillier <guyr-ml1@xxxxxxxxxxxxx> writes:
> In short, why isn't the 
> following legal in a PL/pgsql procedure:

> NEW.user_name := (SHOW uservars.user_name);

Because that isn't a legal SQL subexpression.  (This isn't really the
approved way of using SELECT, either, since what you're writing is
a redundant sub-SELECT.)  It seems that this works in recent plpgsql
versions, FWIW:

	show autovacuum into r;

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux