Question

I am creating partition tables in postgreSQL. And the partition is on date column so its nearly high in number to show in schema. I want to show only my parent table for other users. I tried many searches but this kind of concept is not explained anywhere. This is my hierarchy,

Master_table
  child_01_2013
  child_02_2013
  ....
  child_07_2019

so child table is in Monthly partition. I dont want to show all child table in my database. I am using Pg-admin 4 and DB visualizer(Free) tool for my works. Kindly help me to resolve this.

Was it helpful?

Solution

If all you want is to remove the partitions from the schema view, you could simply move the partitions to another schema:

ALTER TABLE child_01_2013 SET SCHEMA otherschema;

Everything will continue to work as before, but the visual clutter will be gone.

OTHER TIPS

I don't know for dbvisualizer. For pgAdmin4 (tested on version 4.11) the partitions already show up in a folder under the main table in the object tree. Unless you open the folder, you aren't going to see them. You can even hide that folder altogether from the pgAdmin4 preferences setting, if you want.

Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange
scroll top