This is an automated email from the ASF dual-hosted git repository.

tuhaihe pushed a commit to branch REL_2_STABLE
in repository https://gitbox.apache.org/repos/asf/cloudberry.git

commit 5063100b3a218412420fd62beed7ad04994f8af6
Author: Brent Doil <[email protected]>
AuthorDate: Tue Jul 26 16:02:54 2022 -0400

    pg_dump: Fix getTables parrelid
    
    Make sure tblinfo[i].parrelid is set. This was lost in
    the upstream backports, and fixes a bug when dumping
    from GPDB5/GPDB6.
    
    Authored-by: Brent Doil <[email protected]>
---
 src/bin/pg_dump/pg_dump.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index b4a618785ab..cbef0525d7a 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -7478,6 +7478,7 @@ getTables(Archive *fout, int *numTables)
                else
                        tblinfo[i].checkoption = pg_strdup(PQgetvalue(res, i, 
i_checkoption));
                tblinfo[i].toast_reloptions = pg_strdup(PQgetvalue(res, i, 
i_toastreloptions));
+               tblinfo[i].parrelid = atooid(PQgetvalue(res, i, i_parrelid));
                if (PQgetisnull(res, i, i_reloftype))
                        tblinfo[i].reloftype = NULL;
                else


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to