index e2e49f9d7f08f97d36f5b3f64c217439b4d3cbff..4a5ea9e9ed6fbe09baac470e19fc6de919b17e4a 100644 (file)
FOR r IN SELECT * FROM pg_event_trigger_ddl_commands()
LOOP
-- verify that tags match
- tag = get_command_tag(r.command);
+ tag = public.get_command_tag(r.command);
IF tag <> r.command_tag THEN
RAISE NOTICE 'tag % doesn''t match %', tag, r.command_tag;
END IF;
-- log the operation
- cmdtype = get_command_type(r.command);
+ cmdtype = public.get_command_type(r.command);
IF cmdtype <> 'grant' THEN
RAISE NOTICE 'DDL test: type %, tag %', cmdtype, tag;
ELSE
-- if alter table, log more
IF cmdtype = 'alter table' THEN
FOR r2 IN SELECT *
- FROM unnest(get_altertable_subcmdtypes(r.command))
+ FROM unnest(public.get_altertable_subcmdtypes(r.command))
LOOP
RAISE NOTICE ' subcommand: %', r2.unnest;
END LOOP;
index 4d08aaa1c4334d3d26484c7b043cff352a4344a4..e257a215e4fbcb1eb9a0394d8683c33f49d0a3ef 100644 (file)
FOR r IN SELECT * FROM pg_event_trigger_ddl_commands()
LOOP
-- verify that tags match
- tag = get_command_tag(r.command);
+ tag = public.get_command_tag(r.command);
IF tag <> r.command_tag THEN
RAISE NOTICE 'tag % doesn''t match %', tag, r.command_tag;
END IF;
-- log the operation
- cmdtype = get_command_type(r.command);
+ cmdtype = public.get_command_type(r.command);
IF cmdtype <> 'grant' THEN
RAISE NOTICE 'DDL test: type %, tag %', cmdtype, tag;
ELSE
-- if alter table, log more
IF cmdtype = 'alter table' THEN
FOR r2 IN SELECT *
- FROM unnest(get_altertable_subcmdtypes(r.command))
+ FROM unnest(public.get_altertable_subcmdtypes(r.command))
LOOP
RAISE NOTICE ' subcommand: %', r2.unnest;
END LOOP;