row)
base=# create extension if not exists pg_stat_statements;
NOTICE: extension "pg_stat_statements" already exists, skipping
CREATE EXTENSION
base=# GRANT ALL ON FUNCTION public.pg_stat_statements_reset() TO "user";
ERROR: function public.pg_stat_statements_reset() does not exist
base=# select public.pg_stat_statements_reset();
pg_stat_statements_reset
--------------------------
(1 row)
Может просто делать CREATE EXTENSION ... SCHEMA ...?
Обсуждают сегодня