pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Niels Jespersen <NJN@dst.dk>
To: depesz@depesz.com <depesz@depesz.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: SV: Tools showing table partitions as tables in listings of tables
Date: Wed, 9 Dec 2020 15:33:03 +0000
Message-ID: <3979872f0a08409c96bbe7e8a3f68605@dst.dk> (raw)
In-Reply-To: <20201209123747.GA15672@depesz.com>
References: <41f3454665a940399ef246aa96ad0380@dst.dk>
	<20201209123747.GA15672@depesz.com>

>> A small irritation point is that some tools decide that partitions 
>> under a table are to be shown in a list of tables, sometimes drowning the main table in a sea of partitions.
>
>While this doesn't answer your question directly, but when I had this problem, I simply moved partitions to separate schema.
>So, let's say I have table plans in schema public. All its partitions are in "plans" schema.
>Of course naming can be done differently, but the thing is that you can do it, and it doesn't cause any issues with queries - as long as you use main table and not directly partitions.
>
>Best regards,
>
>depesz
>
I had not thought of that. Nice trick. I think we have a standard security setup that revolves around schemas, that may suffer more than this helps. I will think about that some more. 

Thank you for the tip. 

Regards Niels


Message-ID: <3979872f0a08409c96bbe7e8a3f68605@dst.dk>
Permalink:  ../3979872f0a08409c96bbe7e8a3f68605@dst.dk/
Also on:    postgresql.org/message-id/3979872f0a08409c96bbe7e8a3f68605@dst.dk

 · 

reply

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-general@postgresql.org
  Cc: NJN@dst.dk, depesz@depesz.com
  Subject: Re: Tools showing table partitions as tables in listings of tables
  In-Reply-To: <3979872f0a08409c96bbe7e8a3f68605@dst.dk>
  References: <41f3454665a940399ef246aa96ad0380@dst.dk> <20201209123747.GA15672@depesz.com> <3979872f0a08409c96bbe7e8a3f68605@dst.dk>

* 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