From: | Jerry Sievers <gsievers19(at)comcast(dot)net> |
---|---|
To: | Konstantin Izmailov <pgfizm(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: why cannot UNION both SELECT and SHOW? |
Date: | 2011-08-01 21:18:44 |
Message-ID: | 87fwlkg79n.fsf@comcast.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Konstantin Izmailov <pgfizm(at)gmail(dot)com> writes:
> Is it possible instead of executing following two statements:
> ? SHOW search_path; SELECT version();
> to execute just one statement returning both search_path and version?
>
> I'm using Postgres 9.0 and need the result either as two tuples or two fields...
>
> Could you suggest how to rewrite the two statements?
foo=# select current_setting('search_path'), version();
current_setting | version
-----------------+-----------------------------------------------------------------------------------------------------------------
"$user",public | PostgreSQL 9.0.3 on x86_64-unknown-linux-gnu, compiled by GCC gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5, 64-bit
(1 row)
>
> Thx
>
--
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres(dot)consulting(at)comcast(dot)net
p: 305.321.1144
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2011-08-01 22:58:48 | Re: Pending trigger events on ALTER TABLE in 8.3 |
Previous Message | Reuven M. Lerner | 2011-08-01 21:12:58 | Re: Pending trigger events on ALTER TABLE in 8.3 |