Note that I don't officially support Amazon Redshift.
If the driver does not return the procedures when schema and catalog are passed as null, then this is a bug in the driver.
The JDBC specification explicitely allows a null value to indicate "all schemas"
https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/DatabaseMetaData.html#getProcedures(java.lang.String%2Cjava.lang.String%2Cjava.lang.String)
> null means that the schema name should not be used to narrow the search
The same is true for "catalog"
Does this happen in the DbExplorer?
Did you select a schema in the DbExplorer or did you select "*" in the the schema dropdown?
Selecting the "*" will result in passing NULL to the JDBC driver.
> Also, I looked at the SQL in the SQLworkbench logs and found that
> some queries are using postgres function which is not available in
> Redshift. Example: string_agg function is not there in Redshift.
Well, Redhift claims to be Postgres, so in many places SQL Workbench uses Postgres compatible SQL.
If Redshift isn't compatible with Postgres, it shouldn't pretend to be Postgres.
Thomas
Maneesh Sharma schrieb am 02.03.2023 um 03:27:
> Hi SQL Workbench team,
>
> I have installed SQL Workbench/J build 129 and NOT able to see stored procedure which are in non public schema. Public schema stored procedures are visible to us.
>
> On further reviewing the attached SQL workbench logs - we found :
>
> *2023-03-01 19:34:47 DEBUG JdbcProcedureReader.getProcedures() Calling getProcedures() using: catalog=null, schema=null, name=null
> 2023-03-01 19:34:49 DEBUG ObjectCache.addProcedureList() Added 0 procedures
> *