Easy dump of partitioned and inherited data

From: Przemysław Sztoch <przemyslaw(at)sztoch(dot)pl>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Easy dump of partitioned and inherited data
Date: 2023-05-17 15:46:31
Message-ID: 9ffc4e51-ed98-5831-6c34-0374e53c61f3@sztoch.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

|1. Switch --load-via-partition-root is very useful.
Would it be a big deal to add extra information to the |||dump |custom
format so that this switch can be specified from pg_restore level?

2. Another common usability problem is a quick dump of the selected
parent table.
It is important that it should includes all inherited tables or
subpartitions.
Now you can't just specify -t root-table-name, because you'll usually
get an empty data dump.

The list of necessary tables is sometimes very long and, when using
timescaledb, partition tables are called not humanly.

|
--
Przemysław Sztoch | Mobile +48 509 99 00 66

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2023-05-17 16:47:04 Re: Possible regression setting GUCs on \connect
Previous Message Tom Lane 2023-05-17 15:31:48 Re: How do I set a different language to test psql? (/**** QUERY ****/)