From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kouber Saparev <kouber@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Cannot convert partitioned table to a view
Date: Thu, 06 Oct 2022 10:02:10 -0400
Message-ID: <2662605.1665064930@sss.pgh.pa.us> (raw)
In-Reply-To: <CAN4RuQt7Yp3CX583y8KR9SbqdxaNo6BmR=RwKD1o=UypgE2bng@mail.gmail.com>
References: <CAN4RuQt7Yp3CX583y8KR9SbqdxaNo6BmR=RwKD1o=UypgE2bng@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, kouber@gmail.com
Subject: Re: Cannot convert partitioned table to a view
In-Reply-To: <2662605.1665064930@sss.pgh.pa.us>
References: <CAN4RuQt7Yp3CX583y8KR9SbqdxaNo6BmR=RwKD1o=UypgE2bng@mail.gmail.com> <2662605.1665064930@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox