Re: Cannot convert partitioned table to a view - Mailing list pgsql-general

From Tom Lane
Subject Re: Cannot convert partitioned table to a view
Date
Msg-id 2662605.1665064930@sss.pgh.pa.us
Whole thread Raw
In response to Cannot convert partitioned table to a view  (Kouber Saparev <kouber@gmail.com>)
Responses Re: Cannot convert partitioned table to a view
List pgsql-general
Kouber Saparev <kouber@gmail.com> writes:
> I noticed that attaching the "_RETURN" rule to a table converts it to a
> view, and the operation is irreversible, i.e. once attached, I cannot drop
> the rule and put the relation back to a table one.

That is an ancient backwards-compatibility hack that you should not
rely on, and most certainly shouldn't try to make use of from user
code.  It exists because very ancient versions of pg_dump didn't
know how to dump views as views.  We're more likely to rip it out
as no-longer-needed than to expand what it does.

            regards, tom lane



pgsql-general by date:

Previous
From: Kouber Saparev
Date:
Subject: Cannot convert partitioned table to a view
Next
From: Ron
Date:
Subject: pg_restore creates public schema?