diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/packages/edbfuncs/templates/edbfuncs/ppas/11_plus/properties.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/packages/edbfuncs/templates/edbfuncs/ppas/11_plus/properties.sql index a0cc7d78c..cbef08eea 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/packages/edbfuncs/templates/edbfuncs/ppas/11_plus/properties.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/packages/edbfuncs/templates/edbfuncs/ppas/11_plus/properties.sql @@ -17,7 +17,7 @@ SELECT pg_proc.oid, WHEN proaccess = '-' THEN 'Private' ELSE 'Unknown' END AS visibility FROM pg_proc, pg_namespace, pg_language lng -WHERE pr.prokind IN ('f', 'w') +WHERE prokind IN ('f', 'w') AND pronamespace = {{pkgid}}::oid AND pg_proc.pronamespace = pg_namespace.oid AND lng.oid=prolang diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/packages/edbfuncs/templates/edbprocs/ppas/11_plus/properties.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/packages/edbfuncs/templates/edbprocs/ppas/11_plus/properties.sql index 3f6f67104..895fda383 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/packages/edbfuncs/templates/edbprocs/ppas/11_plus/properties.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/packages/edbfuncs/templates/edbprocs/ppas/11_plus/properties.sql @@ -17,7 +17,7 @@ SELECT pg_proc.oid, WHEN proaccess = '-' THEN 'Private' ELSE 'Unknown' END AS visibility FROM pg_proc, pg_namespace, pg_language lng -WHERE pr.prokind = 'p' +WHERE prokind = 'p' AND pronamespace = {{pkgid}}::oid AND pg_proc.pronamespace = pg_namespace.oid AND lng.oid=prolang diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/templates/partition/sql/gpdb/5_plus/create.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/templates/partition/sql/gpdb/5_plus/create.sql deleted file mode 100644 index e69de29bb..000000000