pg_dump: Fix dump of generated columns in partitions

Peter Eisentraut <peter@eisentraut.org>

Commit: bdaa0d2d726911e31b19ed3a02ecb33dfc6d3673
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2021-05-04T12:18:33Z
Releases: 12.7
pg_dump: Fix dump of generated columns in partitions

The previous fix for dumping of inherited generated columns
(0bf83648a52df96f7c8677edbbdf141bfa0cf32b) must not be applied to
partitions, since, unlike normal inherited tables, they are always
dumped separately and reattached.

Reported-by: Santosh Udupi <email@hitha.net>
Discussion: https://www.postgresql.org/message-id/flat/CACLRvHZ4a-%2BSM_159%2BtcrHdEqxFrG%3DW4gwTRnwf7Oj0UNj5R2A%40mail.gmail.com

Files

PathChange+/−
src/bin/pg_dump/common.c modified +6 −4

Discussion