Re: pg_restore - generated column - not populating
Santosh Udupi <email@hitha.net>
From: Santosh Udupi <email@hitha.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>,
pgsql-general@lists.postgresql.org
Date: 2021-02-23T18:18:52Z
Lists: pgsql-bugs, pgsql-general
Both are different versions The following works: Version: pg_dump (pgAdmin Windows) version:13.1 Method: Backup using Windows connecting to the remote host: Command: pg_dump -Fc -p 5432 -h <remotehost_ip> -d mydb > mydb.backup1 -U postgres Restore locally on Ubuntu : pg_restore -d mydb-restore mydb.backup1 ----------- The following does not work: (Does not populate the generated column values) Version: pg_dump (PostgreSQL v13.2 on Ubuntu 20.04) version 13.2 Method: Backup locally on Ubuntu 20.04 Command: pg_dump -Fc -p 5432 -h localhost -d mydb > mydb.backup2 -U postgres Restore locally on Ubuntu : pg_restore -d mydb-restore mydb.backup2 On Tue, Feb 23, 2021 at 9:34 AM Tom Lane <tgl@sss.pgh.pa.us> wrote: > Santosh Udupi <email@hitha.net> writes: > > Right. pg_dump under the pgAdmin runtime folder works perfectly. pg_dump > > in postgres13 (ubuntu) does not work. Exact same syntax. > > So, are these identical pg_dump versions? We did fix some things > in this area in 13.2. > > regards, tom lane >
Commits
-
pg_dump: Fix dump of generated columns in partitions
- bdaa0d2d7269 12.7 landed
- a6a3a274abd1 13.3 landed
- feb270d1005f 14.0 landed