From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Postgres 10 partitioned tables
Date: Mon, 10 Jul 2017 08:52:19 +0200
Message-ID: <ojv86t$m44$1@blaine.gmane.org> (raw)
In-Reply-To: <of6pgu$7kb$1@blaine.gmane.org>
References: <of6pgu$7kb$1@blaine.gmane.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Thomas Kellerer schrieb am 13.05.2017 um 13:09:
> But I think the bigger is: what do do with the partitions
> themselves?
>
> Technically they are tables, but I think it would make sense to hide
> them and let frontend tools deal with displaying partitions belonging
> to a table (this is e.g. how Oracle does it).
>
> However, psql displays them as regular tables just like with the
> "old" inheritance partitions, so that would probably cause some
> confusion if getTables() did not return those tables.
Turns out that this is being discussed for psql as well:
https://www.postgresql.org/message-id/flat/6d0e4eb7-c2a9-c4cd-f9bc-1a1722f878d2%40catalyst.net.nz#6d...
Including a suggestion (patch) display partitions with a different type in the \d output.
If that patch gets accepted/committed, maybe the driver should be adjusted to also return "PARTITION" as the table type instead of TABLE.
That might however, break applications that know how to deal with TABLEs but have no notion that a PARTITION can be treated as that as well.
Thomas
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
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-jdbc@postgresql.org
Cc: spam_eater@gmx.net
Subject: Re: Postgres 10 partitioned tables
In-Reply-To: <ojv86t$m44$1@blaine.gmane.org>
References: <of6pgu$7kb$1@blaine.gmane.org> <ojv86t$m44$1@blaine.gmane.org>
* 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