File tree Expand file tree Collapse file tree 3 files changed +25
-14
lines changed Expand file tree Collapse file tree 3 files changed +25
-14
lines changed Original file line number Diff line number Diff line change
1
+ shared_preload_libraries='pg_pageprep'
2
+ pg_pageprep.enable_workers=off
3
+ pg_pageprep.role='test'
4
+
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ SHOW pg_pageprep.enable_workers;
10
10
/* minimal delays */
11
11
SET pg_pageprep.per_relation_delay=0;
12
12
SET pg_pageprep.per_page_delay=0;
13
+ CREATE FUNCTION show_reloptions(rel regclass) RETURNS text[] AS
14
+ $$
15
+ SELECT reloptions FROM pg_class WHERE oid = rel;
16
+ $$ LANGUAGE sql;
13
17
CREATE EXTENSION pg_pageprep;
14
18
CREATE VIEW todo_list AS
15
19
SELECT regexp_replace(relname::text, '\d+'::text, '0') as rel1, status
@@ -28,12 +32,11 @@ SELECT * FROM todo_list;
28
32
(2 rows)
29
33
30
34
INSERT INTO one SELECT i FROM generate_series(1, 1000) i;
31
- \d+ one
32
- Table "public.one"
33
- Column | Type | Modifiers | Storage | Stats target | Description
34
- --------+---------+-----------+---------+--------------+-------------
35
- a | integer | | plain | |
36
- Options: fillfactor=100
35
+ SELECT show_reloptions('one');
36
+ show_reloptions
37
+ ------------------
38
+ {fillfactor=100}
39
+ (1 row)
37
40
38
41
SELECT scan_pages('one'::regclass);
39
42
NOTICE: fillfactor was updated for "public.one"
@@ -43,12 +46,11 @@ NOTICE: pg_pageprep (contrib_regression): finish page scan for public.one (page
43
46
44
47
(1 row)
45
48
46
- \d+ one
47
- Table "public.one"
48
- Column | Type | Modifiers | Storage | Stats target | Description
49
- --------+---------+-----------+---------+--------------+-------------
50
- a | integer | | plain | |
51
- Options: fillfactor=90
49
+ SELECT show_reloptions('one');
50
+ show_reloptions
51
+ -----------------
52
+ {fillfactor=90}
53
+ (1 row)
52
54
53
55
SELECT * FROM todo_list;
54
56
rel1 | status
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ SHOW pg_pageprep.enable_workers;
9
9
SET pg_pageprep .per_relation_delay = 0 ;
10
10
SET pg_pageprep .per_page_delay = 0 ;
11
11
12
+ CREATE FUNCTION show_reloptions (rel regclass) RETURNS text [] AS
13
+ $$
14
+ SELECT reloptions FROM pg_class WHERE oid = rel;
15
+ $$ LANGUAGE sql;
16
+
12
17
CREATE EXTENSION pg_pageprep;
13
18
CREATE VIEW todo_list AS
14
19
SELECT regexp_replace(relname::text , ' \d +' ::text , ' 0' ) as rel1, status
@@ -22,9 +27,9 @@ CREATE VIEW jobs_list AS
22
27
CREATE TABLE one (a INT4) WITH (fillfactor= 100 );
23
28
SELECT * FROM todo_list;
24
29
INSERT INTO one SELECT i FROM generate_series(1 , 1000 ) i;
25
- \d + one
30
+ SELECT show_reloptions( ' one' );
26
31
SELECT scan_pages(' one' ::regclass);
27
- \d + one
32
+ SELECT show_reloptions( ' one' );
28
33
SELECT * FROM todo_list;
29
34
SELECT * FROM jobs_list;
30
35
You can’t perform that action at this time.
0 commit comments