diff --git a/src/backend/parser/parse_func.c b/src/backend/parser/parse_func.c index 93ca6debdf5..846c90c7ae4 100644 --- a/src/backend/parser/parse_func.c +++ b/src/backend/parser/parse_func.c @@ -2059,11 +2059,10 @@ funcname_signature_string(const char *funcname, int nargs, int numposargs; ListCell *lc; int i; - const char *ptr; initStringInfo(&argbuf); - if (sql_dialect == SQL_DIALECT_TSQL && remove_db_name_in_schema_hook && ptr) { + if (sql_dialect == SQL_DIALECT_TSQL && remove_db_name_in_schema_hook) { funcname = (*remove_db_name_in_schema_hook)(funcname); }