From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | michal(dot)palenik(at)freemap(dot)sk, pgsql-docs(at)lists(dot)postgresql(dot)org |
Subject: | Re: getting table name from partition |
Date: | 2021-08-03 15:12:26 |
Message-ID: | 20210803151226.GD3639@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
On Thu, Jul 29, 2021 at 06:24:17PM -0400, Bruce Momjian wrote:
> On Wed, Jul 14, 2021 at 01:45:12PM +0000, PG Doc comments form wrote:
> > The following documentation comment has been logged on the website:
> >
> > Page: https://www.postgresql.org/docs/13/ddl-partitioning.html
> > Description:
> >
> > I would like to add a sentence like this into the description of
> > partitions:
> >
> > You receive the name of the partition table data is from using
> > tableoid::regclass as column name in the select.
> >
> > to tell the option of getting "real" tablename, eg when partitions are based
> > on locality.
>
> We already have this sentence in the partition docs:
>
> Since a partition hierarchy consisting of the partitioned table
> and its partitions is still an inheritance hierarchy, all the normal
> rules of inheritance apply as described in Section 5.10, with a few exceptions:
>
> but it doesn't make it clear that tableoid, which is mentioned in
> Section 5.10 also works, so here is a patch to add a mention of
> tableoid.
Patch applied back to PG 10, where the partition syntax was added.
--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com
If only the physical world exists, free will is an illusion.
From | Date | Subject | |
---|---|---|---|
Next Message | PG Doc comments form | 2021-08-04 16:04:41 | create global table |
Previous Message | Bruce Momjian | 2021-08-03 14:58:19 | Re: Another pg_dump using split and gzip for large databases |