Re: Rules, Select, Union

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Rules, Select, Union
Дата
Msg-id 3898.965610560@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Rules, Select, Union  (Itai Zukerman <zukerman@math-hat.com>)
Список pgsql-sql
Itai Zukerman <zukerman@math-hat.com> writes:
>   CREATE RULE data_val AS
>   ON SELECT TO data
>   DO INSTEAD
>     SELECT * FROM pos
>     UNION
>     SELECT * FROM neg;

IIRC, UNION doesn't work in rules at the moment (a fix is planned for
7.2).  But what's the point of splitting the data into the two tables
like that?  This example is far from compelling, so I wonder whether
you shouldn't be considering a schema redesign anyway ...
        regards, tom lane


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

Предыдущее
От: Itai Zukerman
Дата:
Сообщение: Rules, Select, Union
Следующее
От: Ang Chin Han
Дата:
Сообщение: Functions too slow, even with iscachable?