Re: why cannot UNION both SELECT and SHOW?

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: why cannot UNION both SELECT and SHOW?
Дата
Msg-id 4E3716D2.6030902@gmail.com
обсуждение исходный текст
Ответ на why cannot UNION both SELECT and SHOW?  (Konstantin Izmailov <pgfizm@gmail.com>)
Список pgsql-general
On 08/01/2011 02:07 PM, Konstantin Izmailov wrote:
> 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?

http://www.postgresql.org/docs/9.0/interactive/functions-info.html

production=> select current_schemas('f'),version();
      current_schemas      |
  version

--------------------------+--------------------------------------------------------------------------------------------------
  {public,utility,history} | PostgreSQL 9.0.3 on i686-pc-linux-gnu,
compiled by GCC gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3, 32-bit

>
> Thx


--
Adrian Klaver
adrian.klaver@gmail.com

В списке pgsql-general по дате отправления:

Предыдущее
От: kleptog@svana.org
Дата:
Сообщение: Re: string comparison problem
Следующее
От: "Reuven M. Lerner"
Дата:
Сообщение: Re: Pending trigger events on ALTER TABLE in 8.3