Re: Rules, Select, Union - Mailing list pgsql-sql

From Tom Lane
Subject Re: Rules, Select, Union
Date
Msg-id 3898.965610560@sss.pgh.pa.us
Whole thread Raw
In response to Rules, Select, Union  (Itai Zukerman <zukerman@math-hat.com>)
List 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 by date:

Previous
From: Itai Zukerman
Date:
Subject: Rules, Select, Union
Next
From: Ang Chin Han
Date:
Subject: Functions too slow, even with iscachable?