1 /* contrib/pageinspect/pageinspect--1.10--1.11.sql */
3 -- complain if script is sourced in psql, rather than via ALTER EXTENSION
4 \echo Use "ALTER EXTENSION pageinspect UPDATE TO '1.11'" to load this file. \quit
7 -- Functions that fetch relation pages must be PARALLEL RESTRICTED,
8 -- not PARALLEL SAFE, otherwise they will fail when run on a
9 -- temporary table in a parallel worker process.
12 ALTER FUNCTION get_raw_page(text, int8) PARALLEL RESTRICTED;
13 ALTER FUNCTION get_raw_page(text, text, int8) PARALLEL RESTRICTED;
14 -- tuple_data_split must be restricted because it may fetch TOAST data.
15 ALTER FUNCTION tuple_data_split(oid, bytea, integer, integer, text) PARALLEL RESTRICTED;
16 ALTER FUNCTION tuple_data_split(oid, bytea, integer, integer, text, bool) PARALLEL RESTRICTED;
17 -- heap_page_item_attrs must be restricted because it calls tuple_data_split.
18 ALTER FUNCTION heap_page_item_attrs(bytea, regclass, bool) PARALLEL RESTRICTED;
19 ALTER FUNCTION heap_page_item_attrs(bytea, regclass) PARALLEL RESTRICTED;
20 ALTER FUNCTION bt_metap(text) PARALLEL RESTRICTED;
21 ALTER FUNCTION bt_page_stats(text, int8) PARALLEL RESTRICTED;
22 ALTER FUNCTION bt_page_items(text, int8) PARALLEL RESTRICTED;
23 ALTER FUNCTION hash_bitmap_info(regclass, int8) PARALLEL RESTRICTED;
24 -- brin_page_items might be parallel safe, because it seems to touch
25 -- only index metadata, but I don't think there's a point in risking it.
26 -- Likewise for gist_page_items.
27 ALTER FUNCTION brin_page_items(bytea, regclass) PARALLEL RESTRICTED;
28 ALTER FUNCTION gist_page_items(bytea, regclass) PARALLEL RESTRICTED;