Views created by UNION ALL - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Views created by UNION ALL
Date
Msg-id 20150813.180350.974486523759490903.t-ishii@sraoss.co.jp
Whole thread Raw
List pgsql-hackers
Views created by UNION ALL could be updated with both UPDATE and
DELETE operations. They are just transformed to UPDATE/DELETE
operation on base tables (or views). I think INSERT cannot be accepted
however.  For example, suppose we have v1:

CREATE VIEW v1 AS SELECT * FROM t1 UNION ALL SELECT * FROM t2;

Inserting into v1 is ambiguous because it can be transformed either
inserting into t1 or t2.

So I think we could make v1 auto updatable view.

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: count_nulls(VARIADIC "any")
Next
From: Taiki Kondo
Date:
Subject: [Proposal] Table partition + join pushdown