Intersection or zero-column queries

Поиск
Список
Период
Сортировка
От Victor Yegorov
Тема Intersection or zero-column queries
Дата
Msg-id CAGnEbojGJrRSOgJwNGM7JSJZpVAf8xXcVPbVrGdhbVEHZ-BUMw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Intersection or zero-column queries  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Intersection or zero-column queries  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Greetings.

One can issue an empty `SELECT` statement and 1 row without columns will be returned:

    postgres=# select;
    --
    (1 row)

However, if I'll do `EXCPET` or `INTERSECT` of such queries, I'll get 2 rows:

    postgres=# select except select;
    --
    (2 rows)
    postgres=# select intersect all select;
    --
    (2 rows)

Why is it so?
Should this be reported as a bug?.. ;)


--
Victor Yegorov

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

Предыдущее
От: Melvin Davidson
Дата:
Сообщение: Re: [v10] CREATE TEMP FUNCTION/CREATE FUNCTION PG_TEMP.X
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Intersection or zero-column queries