Submit
Path:
~
/
/
usr
/
share
/
pgsql
/
extension
/
File Content:
pgstattuple--1.4--1.5.sql
/* contrib/pgstattuple/pgstattuple--1.4--1.5.sql */ -- complain if script is sourced in psql, rather than via ALTER EXTENSION \echo Use "ALTER EXTENSION pgstattuple UPDATE TO '1.5'" to load this file. \quit CREATE OR REPLACE FUNCTION pgstattuple(IN relname text, OUT table_len BIGINT, -- physical table length in bytes OUT tuple_count BIGINT, -- number of live tuples OUT tuple_len BIGINT, -- total tuples length in bytes OUT tuple_percent FLOAT8, -- live tuples in % OUT dead_tuple_count BIGINT, -- number of dead tuples OUT dead_tuple_len BIGINT, -- total dead tuples length in bytes OUT dead_tuple_percent FLOAT8, -- dead tuples in % OUT free_space BIGINT, -- free space in bytes OUT free_percent FLOAT8) -- free space in % AS 'MODULE_PATHNAME', 'pgstattuple_v1_5' LANGUAGE C STRICT PARALLEL SAFE; REVOKE EXECUTE ON FUNCTION pgstattuple(text) FROM PUBLIC; GRANT EXECUTE ON FUNCTION pgstattuple(text) TO pg_stat_scan_tables; CREATE OR REPLACE FUNCTION pgstatindex(IN relname text, OUT version INT, OUT tree_level INT, OUT index_size BIGINT, OUT root_block_no BIGINT, OUT internal_pages BIGINT, OUT leaf_pages BIGINT, OUT empty_pages BIGINT, OUT deleted_pages BIGINT, OUT avg_leaf_density FLOAT8, OUT leaf_fragmentation FLOAT8) AS 'MODULE_PATHNAME', 'pgstatindex_v1_5' LANGUAGE C STRICT PARALLEL SAFE; REVOKE EXECUTE ON FUNCTION pgstatindex(text) FROM PUBLIC; GRANT EXECUTE ON FUNCTION pgstatindex(text) TO pg_stat_scan_tables; CREATE OR REPLACE FUNCTION pg_relpages(IN relname text) RETURNS BIGINT AS 'MODULE_PATHNAME', 'pg_relpages_v1_5' LANGUAGE C STRICT PARALLEL SAFE; REVOKE EXECUTE ON FUNCTION pg_relpages(text) FROM PUBLIC; GRANT EXECUTE ON FUNCTION pg_relpages(text) TO pg_stat_scan_tables; /* New stuff in 1.1 begins here */ CREATE OR REPLACE FUNCTION pgstatginindex(IN relname regclass, OUT version INT4, OUT pending_pages INT4, OUT pending_tuples BIGINT) AS 'MODULE_PATHNAME', 'pgstatginindex_v1_5' LANGUAGE C STRICT PARALLEL SAFE; REVOKE EXECUTE ON FUNCTION pgstatginindex(regclass) FROM PUBLIC; GRANT EXECUTE ON FUNCTION pgstatginindex(regclass) TO pg_stat_scan_tables; /* New stuff in 1.2 begins here */ CREATE OR REPLACE FUNCTION pgstattuple(IN reloid regclass, OUT table_len BIGINT, -- physical table length in bytes OUT tuple_count BIGINT, -- number of live tuples OUT tuple_len BIGINT, -- total tuples length in bytes OUT tuple_percent FLOAT8, -- live tuples in % OUT dead_tuple_count BIGINT, -- number of dead tuples OUT dead_tuple_len BIGINT, -- total dead tuples length in bytes OUT dead_tuple_percent FLOAT8, -- dead tuples in % OUT free_space BIGINT, -- free space in bytes OUT free_percent FLOAT8) -- free space in % AS 'MODULE_PATHNAME', 'pgstattuplebyid_v1_5' LANGUAGE C STRICT PARALLEL SAFE; REVOKE EXECUTE ON FUNCTION pgstattuple(regclass) FROM PUBLIC; GRANT EXECUTE ON FUNCTION pgstattuple(regclass) TO pg_stat_scan_tables; CREATE OR REPLACE FUNCTION pgstatindex(IN relname regclass, OUT version INT, OUT tree_level INT, OUT index_size BIGINT, OUT root_block_no BIGINT, OUT internal_pages BIGINT, OUT leaf_pages BIGINT, OUT empty_pages BIGINT, OUT deleted_pages BIGINT, OUT avg_leaf_density FLOAT8, OUT leaf_fragmentation FLOAT8) AS 'MODULE_PATHNAME', 'pgstatindexbyid_v1_5' LANGUAGE C STRICT PARALLEL SAFE; REVOKE EXECUTE ON FUNCTION pgstatindex(regclass) FROM PUBLIC; GRANT EXECUTE ON FUNCTION pgstatindex(regclass) TO pg_stat_scan_tables; CREATE OR REPLACE FUNCTION pg_relpages(IN relname regclass) RETURNS BIGINT AS 'MODULE_PATHNAME', 'pg_relpagesbyid_v1_5' LANGUAGE C STRICT PARALLEL SAFE; REVOKE EXECUTE ON FUNCTION pg_relpages(regclass) FROM PUBLIC; GRANT EXECUTE ON FUNCTION pg_relpages(regclass) TO pg_stat_scan_tables; /* New stuff in 1.3 begins here */ CREATE OR REPLACE FUNCTION pgstattuple_approx(IN reloid regclass, OUT table_len BIGINT, -- physical table length in bytes OUT scanned_percent FLOAT8, -- what percentage of the table's pages was scanned OUT approx_tuple_count BIGINT, -- estimated number of live tuples OUT approx_tuple_len BIGINT, -- estimated total length in bytes of live tuples OUT approx_tuple_percent FLOAT8, -- live tuples in % (based on estimate) OUT dead_tuple_count BIGINT, -- exact number of dead tuples OUT dead_tuple_len BIGINT, -- exact total length in bytes of dead tuples OUT dead_tuple_percent FLOAT8, -- dead tuples in % (based on estimate) OUT approx_free_space BIGINT, -- estimated free space in bytes OUT approx_free_percent FLOAT8) -- free space in % (based on estimate) AS 'MODULE_PATHNAME', 'pgstattuple_approx_v1_5' LANGUAGE C STRICT PARALLEL SAFE; REVOKE EXECUTE ON FUNCTION pgstattuple_approx(regclass) FROM PUBLIC; GRANT EXECUTE ON FUNCTION pgstattuple_approx(regclass) TO pg_stat_scan_tables; /* New stuff in 1.5 begins here */ CREATE OR REPLACE FUNCTION pgstathashindex(IN relname regclass, OUT version INTEGER, OUT bucket_pages BIGINT, OUT overflow_pages BIGINT, OUT bitmap_pages BIGINT, OUT unused_pages BIGINT, OUT live_items BIGINT, OUT dead_items BIGINT, OUT free_percent FLOAT8) AS 'MODULE_PATHNAME', 'pgstathashindex' LANGUAGE C STRICT PARALLEL SAFE; REVOKE EXECUTE ON FUNCTION pgstathashindex(regclass) FROM PUBLIC; GRANT EXECUTE ON FUNCTION pgstathashindex(regclass) TO pg_stat_scan_tables;
Submit
FILE
FOLDER
Name
Size
Permission
Action
adminpack--1.0--1.1.sql
274 bytes
0644
adminpack--1.0.sql
1535 bytes
0644
adminpack--1.1--2.0.sql
1682 bytes
0644
adminpack--2.0--2.1.sql
595 bytes
0644
adminpack.control
176 bytes
0644
amcheck--1.0--1.1.sql
931 bytes
0644
amcheck--1.0.sql
704 bytes
0644
amcheck--1.1--1.2.sql
705 bytes
0644
amcheck.control
154 bytes
0644
autoinc--1.0.sql
249 bytes
0644
autoinc.control
149 bytes
0644
bloom--1.0.sql
666 bytes
0644
bloom.control
156 bytes
0644
btree_gin--1.0--1.1.sql
1372 bytes
0644
btree_gin--1.0.sql
24818 bytes
0644
btree_gin--1.1--1.2.sql
1445 bytes
0644
btree_gin--1.2--1.3.sql
4571 bytes
0644
btree_gin.control
175 bytes
0644
btree_gist--1.0--1.1.sql
3739 bytes
0644
btree_gist--1.1--1.2.sql
5048 bytes
0644
btree_gist--1.2--1.3.sql
1955 bytes
0644
btree_gist--1.2.sql
41115 bytes
0644
btree_gist--1.3--1.4.sql
1932 bytes
0644
btree_gist--1.4--1.5.sql
1872 bytes
0644
btree_gist.control
178 bytes
0644
citext--1.0--1.1.sql
1028 bytes
0644
citext--1.1--1.2.sql
3424 bytes
0644
citext--1.2--1.3.sql
850 bytes
0644
citext--1.3--1.4.sql
668 bytes
0644
citext--1.4--1.5.sql
2284 bytes
0644
citext--1.4.sql
13466 bytes
0644
citext--1.5--1.6.sql
427 bytes
0644
citext.control
173 bytes
0644
cube--1.0--1.1.sql
1594 bytes
0644
cube--1.1--1.2.sql
3815 bytes
0644
cube--1.2--1.3.sql
365 bytes
0644
cube--1.2.sql
9761 bytes
0644
cube--1.3--1.4.sql
2387 bytes
0644
cube.control
157 bytes
0644
dblink--1.0--1.1.sql
419 bytes
0644
dblink--1.1--1.2.sql
2832 bytes
0644
dblink--1.2.sql
6645 bytes
0644
dblink.control
170 bytes
0644
dict_int--1.0.sql
711 bytes
0644
dict_int.control
173 bytes
0644
dict_xsyn--1.0.sql
694 bytes
0644
dict_xsyn.control
179 bytes
0644
earthdistance--1.0--1.1.sql
671 bytes
0644
earthdistance--1.1.sql
3234 bytes
0644
earthdistance.control
202 bytes
0644
file_fdw--1.0.sql
475 bytes
0644
file_fdw.control
155 bytes
0644
fuzzystrmatch--1.0--1.1.sql
788 bytes
0644
fuzzystrmatch--1.1.sql
1576 bytes
0644
fuzzystrmatch.control
190 bytes
0644
hstore--1.0--1.1.sql
279 bytes
0644
hstore--1.1--1.2.sql
1639 bytes
0644
hstore--1.2--1.3.sql
525 bytes
0644
hstore--1.3--1.4.sql
5310 bytes
0644
hstore--1.4--1.5.sql
409 bytes
0644
hstore--1.4.sql
13765 bytes
0644
hstore--1.5--1.6.sql
455 bytes
0644
hstore--1.6--1.7.sql
1061 bytes
0644
hstore.control
173 bytes
0644
hstore_plperl--1.0.sql
580 bytes
0644
hstore_plperl.control
186 bytes
0644
hstore_plperlu--1.0.sql
627 bytes
0644
hstore_plperlu.control
189 bytes
0644
hstore_plpython3u--1.0.sql
750 bytes
0644
hstore_plpython3u.control
201 bytes
0644
insert_username--1.0.sql
273 bytes
0644
insert_username.control
170 bytes
0644
intagg--1.0--1.1.sql
897 bytes
0644
intagg--1.1.sql
1089 bytes
0644
intagg.control
119 bytes
0644
intarray--1.0--1.1.sql
1794 bytes
0644
intarray--1.1--1.2.sql
5525 bytes
0644
intarray--1.2--1.3.sql
663 bytes
0644
intarray--1.2.sql
12293 bytes
0644
intarray.control
191 bytes
0644
isn--1.0--1.1.sql
12333 bytes
0644
isn--1.1--1.2.sql
5264 bytes
0644
isn--1.1.sql
69885 bytes
0644
isn.control
175 bytes
0644
jsonb_plperl--1.0.sql
658 bytes
0644
jsonb_plperl.control
191 bytes
0644
jsonb_plperlu--1.0.sql
704 bytes
0644
jsonb_plperlu.control
178 bytes
0644
jsonb_plpython3u--1.0.sql
732 bytes
0644
jsonb_plpython3u.control
191 bytes
0644
lo--1.0--1.1.sql
223 bytes
0644
lo--1.1.sql
722 bytes
0644
lo.control
141 bytes
0644
ltree--1.0--1.1.sql
6336 bytes
0644
ltree--1.1--1.2.sql
5217 bytes
0644
ltree--1.1.sql
19375 bytes
0644
ltree.control
170 bytes
0644
ltree_plpython3u--1.0.sql
449 bytes
0644
ltree_plpython3u.control
197 bytes
0644
moddatetime--1.0.sql
261 bytes
0644
moddatetime.control
165 bytes
0644
pageinspect--1.0--1.1.sql
560 bytes
0644
pageinspect--1.1--1.2.sql
562 bytes
0644
pageinspect--1.2--1.3.sql
1946 bytes
0644
pageinspect--1.3--1.4.sql
2566 bytes
0644
pageinspect--1.4--1.5.sql
1347 bytes
0644
pageinspect--1.5--1.6.sql
2252 bytes
0644
pageinspect--1.5.sql
6262 bytes
0644
pageinspect--1.6--1.7.sql
698 bytes
0644
pageinspect--1.7--1.8.sql
1711 bytes
0644
pageinspect.control
173 bytes
0644
pg_buffercache--1.0--1.1.sql
508 bytes
0644
pg_buffercache--1.1--1.2.sql
271 bytes
0644
pg_buffercache--1.2--1.3.sql
328 bytes
0644
pg_buffercache--1.2.sql
794 bytes
0644
pg_buffercache.control
157 bytes
0644
pg_freespacemap--1.0--1.1.sql
335 bytes
0644
pg_freespacemap--1.1--1.2.sql
377 bytes
0644
pg_freespacemap--1.1.sql
899 bytes
0644
pg_freespacemap.control
160 bytes
0644
pg_prewarm--1.0--1.1.sql
281 bytes
0644
pg_prewarm--1.1--1.2.sql
458 bytes
0644
pg_prewarm--1.1.sql
475 bytes
0644
pg_prewarm.control
139 bytes
0644
pg_stat_statements--1.0--1.1.sql
1246 bytes
0644
pg_stat_statements--1.1--1.2.sql
1336 bytes
0644
pg_stat_statements--1.2--1.3.sql
1454 bytes
0644
pg_stat_statements--1.3--1.4.sql
345 bytes
0644
pg_stat_statements--1.4--1.5.sql
305 bytes
0644
pg_stat_statements--1.4.sql
1427 bytes
0644
pg_stat_statements--1.5--1.6.sql
376 bytes
0644
pg_stat_statements--1.6--1.7.sql
806 bytes
0644
pg_stat_statements--1.7--1.8.sql
1744 bytes
0644
pg_stat_statements.control
204 bytes
0644
pg_trgm--1.0--1.1.sql
536 bytes
0644
pg_trgm--1.1--1.2.sql
2192 bytes
0644
pg_trgm--1.2--1.3.sql
3498 bytes
0644
pg_trgm--1.3--1.4.sql
2045 bytes
0644
pg_trgm--1.3.sql
7942 bytes
0644
pg_trgm--1.4--1.5.sql
858 bytes
0644
pg_trgm.control
192 bytes
0644
pg_visibility--1.0--1.1.sql
883 bytes
0644
pg_visibility--1.1--1.2.sql
833 bytes
0644
pg_visibility--1.1.sql
2825 bytes
0644
pg_visibility.control
186 bytes
0644
pgcrypto--1.0--1.1.sql
307 bytes
0644
pgcrypto--1.1--1.2.sql
483 bytes
0644
pgcrypto--1.2--1.3.sql
2346 bytes
0644
pgcrypto--1.3.sql
5708 bytes
0644
pgcrypto.control
152 bytes
0644
pgrowlocks--1.0--1.1.sql
651 bytes
0644
pgrowlocks--1.1--1.2.sql
253 bytes
0644
pgrowlocks--1.2.sql
555 bytes
0644
pgrowlocks.control
152 bytes
0644
pgstattuple--1.0--1.1.sql
400 bytes
0644
pgstattuple--1.1--1.2.sql
1435 bytes
0644
pgstattuple--1.2--1.3.sql
1126 bytes
0644
pgstattuple--1.3--1.4.sql
623 bytes
0644
pgstattuple--1.4--1.5.sql
5506 bytes
0644
pgstattuple--1.4.sql
3764 bytes
0644
pgstattuple.control
147 bytes
0644
plpgsql--1.0.sql
658 bytes
0644
plpgsql.control
193 bytes
0644
postgres_fdw--1.0.sql
507 bytes
0644
postgres_fdw.control
172 bytes
0644
refint--1.0.sql
343 bytes
0644
refint.control
169 bytes
0644
seg--1.0--1.1.sql
3005 bytes
0644
seg--1.1--1.2.sql
360 bytes
0644
seg--1.1.sql
8142 bytes
0644
seg--1.2--1.3.sql
2344 bytes
0644
seg.control
187 bytes
0644
sslinfo--1.0--1.1.sql
375 bytes
0644
sslinfo--1.1--1.2.sql
746 bytes
0644
sslinfo--1.2.sql
1534 bytes
0644
sslinfo.control
146 bytes
0644
tablefunc--1.0.sql
2153 bytes
0644
tablefunc.control
189 bytes
0644
tcn--1.0.sql
274 bytes
0644
tcn.control
149 bytes
0644
tsm_system_rows--1.0.sql
327 bytes
0644
tsm_system_rows.control
201 bytes
0644
tsm_system_time--1.0.sql
327 bytes
0644
tsm_system_time.control
207 bytes
0644
unaccent--1.0--1.1.sql
445 bytes
0644
unaccent--1.1.sql
910 bytes
0644
unaccent.control
172 bytes
0644
uuid-ossp--1.0--1.1.sql
688 bytes
0644
uuid-ossp--1.1.sql
1516 bytes
0644
uuid-ossp.control
178 bytes
0644
xml2--1.0--1.1.sql
944 bytes
0644
xml2--1.1.sql
2049 bytes
0644
xml2.control
182 bytes
0644
N4ST4R_ID | Naxtarrr