gooderp18绿色标准版
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

19 lines
1.1KB

  1. /* contrib/pgstattuple/pgstattuple--1.2--1.3.sql */
  2. -- complain if script is sourced in psql, rather than via ALTER EXTENSION
  3. \echo Use "ALTER EXTENSION pgstattuple UPDATE TO '1.3'" to load this file. \quit
  4. CREATE FUNCTION pgstattuple_approx(IN reloid regclass,
  5. OUT table_len BIGINT, -- physical table length in bytes
  6. OUT scanned_percent FLOAT8, -- what percentage of the table's pages was scanned
  7. OUT approx_tuple_count BIGINT, -- estimated number of live tuples
  8. OUT approx_tuple_len BIGINT, -- estimated total length in bytes of live tuples
  9. OUT approx_tuple_percent FLOAT8, -- live tuples in % (based on estimate)
  10. OUT dead_tuple_count BIGINT, -- exact number of dead tuples
  11. OUT dead_tuple_len BIGINT, -- exact total length in bytes of dead tuples
  12. OUT dead_tuple_percent FLOAT8, -- dead tuples in % (based on estimate)
  13. OUT approx_free_space BIGINT, -- estimated free space in bytes
  14. OUT approx_free_percent FLOAT8) -- free space in % (based on estimate)
  15. AS 'MODULE_PATHNAME', 'pgstattuple_approx'
  16. LANGUAGE C STRICT;
上海开阖软件有限公司 沪ICP备12045867号-1