datum = heap_getattr(&tmptup, 3, elemdesc, &isnull);
if (isnull)
{
- elog(WARNING, "null typename !?");
-
- if (objtype != OBJECT_AGGREGATE)
+ if (objtype == OBJECT_OPERATOR)
+ {
+ elog(WARNING, "null typename !?");
continue;
+ }
}
else
{
addr = get_object_address(objtype, objnames, objargs, &objrel,
AccessExclusiveLock, false);
+
/* unsupported object? */
if (addr.classId == InvalidOid)
continue;
\c postgres
\d+ test_trigger_table
\df+ test_trigger_fn
- List of functions
- Schema | Name | Result data type | Argument data types | Type | Security | Volatility | Owner | Language | Source code | Description
---------+-----------------+------------------+---------------------+---------+----------+------------+-------+----------+-------------+-------------
- public | test_trigger_fn | trigger | | trigger | invoker | volatile | super | plpgsql | +|
- | | | | | | | | | BEGIN +|
- | | | | | | | | | END; +|
- | | | | | | | | | |
-(1 row)
+ List of functions
+ Schema | Name | Result data type | Argument data types | Type | Security | Volatility | Owner | Language | Source code | Description
+--------+------+------------------+---------------------+------+----------+------------+-------+----------+-------------+-------------
+(0 rows)
a serial,
b int UNIQUE
);
+CREATE FUNCTION test_schema_1.abc_func() RETURNS void
+ AS $$ BEGIN END; $$ LANGUAGE plpgsql;
SELECT pg_xlog_wait_remote_apply(pg_current_xlog_location(), pid) FROM pg_stat_replication;
pg_xlog_wait_remote_apply
---------------------------
CREATE SCHEMA IF NOT EXISTS test_schema_renamed; -- ok with notice
NOTICE: schema "test_schema_renamed" already exists, skipping
DROP SCHEMA test_schema_renamed CASCADE;
-NOTICE: drop cascades to 2 other objects
+NOTICE: drop cascades to 3 other objects
DETAIL: drop cascades to table test_schema_renamed.abc
drop cascades to view test_schema_renamed.abc_view
+drop cascades to function test_schema_renamed.abc_func()
SELECT pg_xlog_wait_remote_apply(pg_current_xlog_location(), pid) FROM pg_stat_replication;
pg_xlog_wait_remote_apply
---------------------------
b int UNIQUE
);
+CREATE FUNCTION test_schema_1.abc_func() RETURNS void
+ AS $$ BEGIN END; $$ LANGUAGE plpgsql;
+
SELECT pg_xlog_wait_remote_apply(pg_current_xlog_location(), pid) FROM pg_stat_replication;
\c regression
SELECT COUNT(*) FROM pg_class WHERE relnamespace =