| commit | e8ca939d5c9c430da7dbd77abbdc5c1b00f41a87 | [log] [tgz] |
|---|---|---|
| author | Robert Mu <dbx_c@hotmail.com> | Fri Jul 25 19:59:01 2025 +0800 |
| committer | GitHub <noreply@github.com> | Fri Jul 25 19:59:01 2025 +0800 |
| tree | 368942660323e6569096e615a6b5877d1d1bbcaf | |
| parent | 7e1b684694b9bbb02a2a8853678b2e87ad441a3f [diff] |
fix(cluster): add database type check for legacy GPDB query (#12)
When retrieving the segment configuration, there is special query
logic for GreenplumDB (GPDB) versions prior to "6".
The previous implementation only checked the version number. This could
cause an incorrect query to be executed on a non-GPDB database
(like CloudberryDB) that might also satisfy the `Before("6")` version
check.
This commit adds an `IsGPDB()` check to ensure this legacy logic is
triggered only when connected to the correct database type, making
the function more robust.This project is a fork of the Greenplum gp-common-go-libs, which is a dependency for the gpbackup utility in Cloudberry.
Please note that this repository is only maintained for Cloudberry 1.0 and its later versions.
Licensed under Apache License Version 2.0. For more details, please refer to the LICENSE.
Thanks to all the gp-common-go-libs contributors, more details in its GitHub page.