Re: Postgres 10 partitioned tables

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Postgres 10 partitioned tables
Date: 2017-07-10 06:52:19
Message-ID: ojv86t$m44$1@blaine.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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(dot)net(dot)nz#6d0e4eb7-c2a9-c4cd-f9bc-1a1722f878d2(at)catalyst(dot)net(dot)nz

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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2017-07-10 11:40:46 Re: Fix please typo on our main page "trucated" -> "truncated" :)
Previous Message Alexandru Lazarev 2017-07-07 17:45:56 Fix please typo on our main page "trucated" -> "truncated" :)