Re: getting table name from partition - Mailing list pgsql-docs

From Bruce Momjian
Subject Re: getting table name from partition
Date
Msg-id 20210729222417.GW9600@momjian.us
Whole thread Raw
In response to getting table name from partition  (PG Doc comments form <noreply@postgresql.org>)
Responses Re: getting table name from partition  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: getting table name from partition  (Bruce Momjian <bruce@momjian.us>)
List pgsql-docs
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.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  If only the physical world exists, free will is an illusion.


Attachment

pgsql-docs by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Another pg_dump using split and gzip for large databases
Next
From: PG Doc comments form
Date:
Subject: documentation describing the range of a number type 'integer' is incorrect