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

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

commit 62075a59432001ab3e92fd9e29900b65c454f09b
Author: Brent Doil <[email protected]>
AuthorDate: Wed Jan 24 23:45:58 2024 -0500

    pg_upgrade Exclude `$libdir/plpython2` during library check
    
    $libdir/plpython2 was removed with GP7, which only supports
    plpython3. The target GP7 cluster is not expected to have the
    library, so it's excluded from the check.
---
 src/bin/pg_upgrade/function.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/bin/pg_upgrade/function.c b/src/bin/pg_upgrade/function.c
index be45addc5c..b0c851689b 100644
--- a/src/bin/pg_upgrade/function.c
+++ b/src/bin/pg_upgrade/function.c
@@ -66,13 +66,17 @@ get_loadable_libraries(void)
 
                /*
                 * Fetch all libraries containing non-built-in C functions in 
this DB.
+                * GPDB: $libdir/plpython2 was removed with GP7, which only 
supports
+                * plpython3. The target GP7 cluster is not expected to have the
+                * library, so it's excluded from the check.
                 */
                ress[dbnum] = executeQueryOrDie(conn,
                                                                                
"SELECT DISTINCT probin "
                                                                                
"FROM pg_catalog.pg_proc "
                                                                                
"WHERE prolang = %u AND "
                                                                                
"probin IS NOT NULL AND "
-                                                                               
"oid >= %u;",
+                                                                               
"probin != '$libdir/plpython2' "
+                                                                               
"AND oid >= %u;",
                                                                                
ClanguageId,
                                                                                
FirstNormalObjectId);
                totaltups += PQntuples(ress[dbnum]);


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

Reply via email to