From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Lior Dahan <liord(at)qmasters(dot)co> |
Cc: | Daniel Gustafsson <daniel(at)yesql(dot)se>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>, Jonathan Tauman <JonathanT(at)qmasters(dot)co> |
Subject: | Re: Issues with pg_dump command |
Date: | 2020-11-18 14:52:11 |
Message-ID: | 20201118145211.GB13825@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Wed, Nov 18, 2020 at 02:37:50PM +0000, Lior Dahan wrote:
> Is there a way we can tell which tables are under this parent one? Perhaps we can dump them instead.
Well, in psql, \d will show you the children:
CREATE TABLE parent (x int);
CREATE TABLE child (y int) INHERITS (parent);
\d parent
Table "public.parent"
Column | Type | Modifiers
--------+---------+-----------
x | integer |
--> Number of child tables: 1 (Use \d+ to list them.)
test=> \d+ parent
Table "public.parent"
Column | Type | Modifiers | Storage | Stats target | Description
--------+---------+-----------+---------+--------------+-------------
x | integer | | plain | |
--> Child tables: child
--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EnterpriseDB https://enterprisedb.com
The usefulness of a cup is in its emptiness, Bruce Lee
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2020-11-18 14:52:31 | Re: Issues with pg_dump command |
Previous Message | Lior Dahan | 2020-11-18 14:37:50 | RE: Issues with pg_dump command |