You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudberry.apache.org by sm...@apache.org on 2026/06/15 10:47:37 UTC
(cloudberry) 16/32: pg_dump: Remove DumpOptions argument from testGPbackend
This is an automated email from the ASF dual-hosted git repository.
Smyatkin-Maxim pushed a commit to branch pg-dump-rebase-REL-2
in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit e52e25e3ae9b287f3da98b3cc91047aebbfee75d
Author: Brent Doil <bd...@vmware.com>
AuthorDate: Wed Aug 17 10:52:40 2022 -0400
pg_dump: Remove DumpOptions argument from testGPbackend
---
src/bin/pg_dump/pg_dump.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 763469a2b4d..4f44ce46b12 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -384,7 +384,7 @@ static void expand_oid_patterns(SimpleStringList *patterns,
SimpleOidList *oids);
static bool is_returns_table_function(int nallargs, char **argmodes);
-static void testGPbackend(Archive *fout, DumpOptions *dopt);
+static void testGPbackend(Archive *fout);
static char *nextToken(register char **stringp, register const char *delim);
static void addDistributedBy(Archive *fout, PQExpBuffer q, const TableInfo *tbinfo, int actual_atts);
@@ -973,7 +973,7 @@ main(int argc, char **argv)
/*
* Determine whether or not we're interacting with a GP backend.
*/
- testGPbackend(fout, &dopt);
+ testGPbackend(fout);
/*
* Now that the type of backend is known, determine the gp-syntax option
@@ -20793,8 +20793,9 @@ findDumpableDependencies(ArchiveHandle *AH, const DumpableObject *dobj,
* isGPbackend - returns true if the connected backend is a GreenPlum DB backend.
*/
static void
-testGPbackend(Archive *fout, DumpOptions *dopt)
+testGPbackend(Archive *fout)
{
+ DumpOptions *dopt = fout->dopt;
PQExpBuffer query = createPQExpBuffer();
PGresult *res;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org