gooderp18绿色标准版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
806B

  1. /* contrib/pg_stat_statements/pg_stat_statements--1.6--1.7.sql */
  2. -- complain if script is sourced in psql, rather than via ALTER EXTENSION
  3. \echo Use "ALTER EXTENSION pg_stat_statements UPDATE TO '1.7'" to load this file. \quit
  4. /* First we have to remove them from the extension */
  5. ALTER EXTENSION pg_stat_statements DROP FUNCTION pg_stat_statements_reset();
  6. /* Then we can drop them */
  7. DROP FUNCTION pg_stat_statements_reset();
  8. /* Now redefine */
  9. CREATE FUNCTION pg_stat_statements_reset(IN userid Oid DEFAULT 0,
  10. IN dbid Oid DEFAULT 0,
  11. IN queryid bigint DEFAULT 0
  12. )
  13. RETURNS void
  14. AS 'MODULE_PATHNAME', 'pg_stat_statements_reset_1_7'
  15. LANGUAGE C STRICT PARALLEL SAFE;
  16. -- Don't want this to be available to non-superusers.
  17. REVOKE ALL ON FUNCTION pg_stat_statements_reset(Oid, Oid, bigint) FROM PUBLIC;
上海开阖软件有限公司 沪ICP备12045867号-1