pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedTools showing table partitions as tables in listings of tables
2+ messages / 2 participants
[nested] [flat]
* Tools showing table partitions as tables in listings of tables
@ 2020-12-09 12:29 Niels Jespersen <NJN@dst.dk>
2020-12-09 12:37 ` Re: Tools showing table partitions as tables in listings of tables hubert depesz lubaczewski <depesz@depesz.com>
0 siblings, 1 reply; 2+ messages in thread
From: Niels Jespersen @ 2020-12-09 12:29 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Hello all
We are very happy with the ongoing work on partitioning i Postgres 11+. We use it in a number of cases.
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.
PgAdmin shows partitions below the main table, Datagrip also. Other tools do not. The ones that I have heard about is the SAS System and Enterprise Architect, both connecting through ODBC. I am aware that the issue is really that these tools and/or the ODBC Driver issues queries against the catalog and these queries are naive in respect to table partitions.
Any ideas for working around this? Naming partitions in a special manner, something else. It's not the end of the world, but quite irritating for some users.
Regards
Niels Jespersen
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Tools showing table partitions as tables in listings of tables
2020-12-09 12:29 Tools showing table partitions as tables in listings of tables Niels Jespersen <NJN@dst.dk>
@ 2020-12-09 12:37 ` hubert depesz lubaczewski <depesz@depesz.com>
0 siblings, 0 replies; 2+ messages in thread
From: hubert depesz lubaczewski @ 2020-12-09 12:37 UTC (permalink / raw)
To: Niels Jespersen <NJN@dst.dk>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-12-09 12:37 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-12-09 12:29 Tools showing table partitions as tables in listings of tables Niels Jespersen <NJN@dst.dk>
2020-12-09 12:37 ` hubert depesz lubaczewski <depesz@depesz.com>
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