Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUSZ8-0000Ku-Pi for pgsql-jdbc@arkaria.postgresql.org; Mon, 10 Jul 2017 06:53:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dUSZ8-0000c3-CI for pgsql-jdbc@arkaria.postgresql.org; Mon, 10 Jul 2017 06:53:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dUSYd-000875-HF for pgsql-jdbc@postgresql.org; Mon, 10 Jul 2017 06:52:35 +0000 Received: from [195.159.176.226] (helo=blaine.gmane.org) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dUSYV-0003LZ-UI for pgsql-jdbc@postgresql.org; Mon, 10 Jul 2017 06:52:35 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dUSYO-0006Bc-7d for pgsql-jdbc@postgresql.org; Mon, 10 Jul 2017 08:52:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: Postgres 10 partitioned tables Date: Mon, 10 Jul 2017 08:52:19 +0200 Lines: 24 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: Content-Language: de-DE X-Host-Lookup-Failed: Reverse DNS lookup failed for 195.159.176.226 (failed) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org 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#6d0e4eb7-c2a9-c4cd-f9bc-1a1722f878d2@catalyst.net.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 -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc