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

On Wed, Dec 09, 2020 at 12:29:43PM +0000, Niels Jespersen wrote:
> 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






view thread (2+ messages)

Message-ID: <20201209123747.GA15672@depesz.com>
Permalink:  ../20201209123747.GA15672@depesz.com/
Also on:    postgresql.org/message-id/20201209123747.GA15672@depesz.com

 · 

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

* 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