gooderp18绿色标准版
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

22 lignes
794B

  1. /* contrib/pg_buffercache/pg_buffercache--1.2.sql */
  2. -- complain if script is sourced in psql, rather than via CREATE EXTENSION
  3. \echo Use "CREATE EXTENSION pg_buffercache" to load this file. \quit
  4. -- Register the function.
  5. CREATE FUNCTION pg_buffercache_pages()
  6. RETURNS SETOF RECORD
  7. AS 'MODULE_PATHNAME', 'pg_buffercache_pages'
  8. LANGUAGE C PARALLEL SAFE;
  9. -- Create a view for convenient access.
  10. CREATE VIEW pg_buffercache AS
  11. SELECT P.* FROM pg_buffercache_pages() AS P
  12. (bufferid integer, relfilenode oid, reltablespace oid, reldatabase oid,
  13. relforknumber int2, relblocknumber int8, isdirty bool, usagecount int2,
  14. pinning_backends int4);
  15. -- Don't want these to be available to public.
  16. REVOKE ALL ON FUNCTION pg_buffercache_pages() FROM PUBLIC;
  17. REVOKE ALL ON pg_buffercache FROM PUBLIC;
上海开阖软件有限公司 沪ICP备12045867号-1