Variable psql table output moved in separate file
This made: - repack.out == repack_2.out - repack_3.out == repack_4.out - repack_1.out == repack_6.out
This commit is contained in:
parent
31d15a87e7
commit
0cb08e5512
@ -17,7 +17,7 @@ INTVERSION := $(shell echo $$(($$(echo $(VERSION).0 | sed 's/\([[:digit:]]\{1,\}
|
|||||||
# Test suite
|
# Test suite
|
||||||
#
|
#
|
||||||
|
|
||||||
REGRESS := init-extension repack tablespace issue3
|
REGRESS := init-extension repack after-schema tablespace issue3
|
||||||
|
|
||||||
USE_PGXS = 1 # use pgxs if not in contrib directory
|
USE_PGXS = 1 # use pgxs if not in contrib directory
|
||||||
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
||||||
|
75
regress/expected/after-schema.out
Normal file
75
regress/expected/after-schema.out
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
--
|
||||||
|
-- tables schema after running repack
|
||||||
|
--
|
||||||
|
\d tbl_cluster
|
||||||
|
Table "public.tbl_cluster"
|
||||||
|
Column | Type | Modifiers
|
||||||
|
--------+-----------------------------+-----------
|
||||||
|
col1 | integer | not null
|
||||||
|
time | timestamp without time zone |
|
||||||
|
,") | text | not null
|
||||||
|
Indexes:
|
||||||
|
"tbl_cluster_pkey" PRIMARY KEY, btree (","")", col1) WITH (fillfactor='75')
|
||||||
|
",") cluster" btree ("time", length(","")"), ","")" text_pattern_ops) WITH (fillfactor='75') CLUSTER
|
||||||
|
|
||||||
|
\d tbl_gistkey
|
||||||
|
Table "public.tbl_gistkey"
|
||||||
|
Column | Type | Modifiers
|
||||||
|
--------+---------+-----------
|
||||||
|
id | integer | not null
|
||||||
|
c | circle |
|
||||||
|
Indexes:
|
||||||
|
"tbl_gistkey_pkey" PRIMARY KEY, btree (id)
|
||||||
|
"cidx_circle" gist (c) CLUSTER
|
||||||
|
|
||||||
|
\d tbl_only_ckey
|
||||||
|
Table "public.tbl_only_ckey"
|
||||||
|
Column | Type | Modifiers
|
||||||
|
--------+-----------------------------+-----------
|
||||||
|
col1 | integer |
|
||||||
|
col2 | timestamp without time zone |
|
||||||
|
,") | text |
|
||||||
|
Indexes:
|
||||||
|
"cidx_only_ckey" btree (col2, ","")") CLUSTER
|
||||||
|
|
||||||
|
\d tbl_only_pkey
|
||||||
|
Table "public.tbl_only_pkey"
|
||||||
|
Column | Type | Modifiers
|
||||||
|
--------+---------+-----------
|
||||||
|
col1 | integer | not null
|
||||||
|
,") | text |
|
||||||
|
Indexes:
|
||||||
|
"tbl_only_pkey_pkey" PRIMARY KEY, btree (col1)
|
||||||
|
|
||||||
|
\d tbl_with_dropped_column
|
||||||
|
Table "public.tbl_with_dropped_column"
|
||||||
|
Column | Type | Modifiers
|
||||||
|
--------+---------+-----------
|
||||||
|
c1 | text |
|
||||||
|
id | integer | not null
|
||||||
|
c2 | text |
|
||||||
|
c3 | text |
|
||||||
|
Indexes:
|
||||||
|
"tbl_with_dropped_column_pkey" PRIMARY KEY, btree (id) WITH (fillfactor='75') CLUSTER
|
||||||
|
"idx_c1c2" btree (c1, c2) WITH (fillfactor='75')
|
||||||
|
"idx_c2c1" btree (c2, c1)
|
||||||
|
|
||||||
|
\d tbl_with_dropped_toast
|
||||||
|
Table "public.tbl_with_dropped_toast"
|
||||||
|
Column | Type | Modifiers
|
||||||
|
--------+---------+-----------
|
||||||
|
i | integer | not null
|
||||||
|
j | integer | not null
|
||||||
|
Indexes:
|
||||||
|
"tbl_with_dropped_toast_pkey" PRIMARY KEY, btree (i, j) CLUSTER
|
||||||
|
|
||||||
|
\d tbl_idxopts
|
||||||
|
Table "public.tbl_idxopts"
|
||||||
|
Column | Type | Modifiers
|
||||||
|
--------+---------+-----------
|
||||||
|
i | integer | not null
|
||||||
|
t | text |
|
||||||
|
Indexes:
|
||||||
|
"tbl_idxopts_pkey" PRIMARY KEY, btree (i)
|
||||||
|
"idxopts_t" btree (t DESC NULLS LAST) WHERE t <> 'aaa'::text
|
||||||
|
|
75
regress/expected/after-schema_1.out
Normal file
75
regress/expected/after-schema_1.out
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
--
|
||||||
|
-- tables schema after running repack
|
||||||
|
--
|
||||||
|
\d tbl_cluster
|
||||||
|
Table "public.tbl_cluster"
|
||||||
|
Column | Type | Collation | Nullable | Default
|
||||||
|
--------+-----------------------------+-----------+----------+---------
|
||||||
|
col1 | integer | | not null |
|
||||||
|
time | timestamp without time zone | | |
|
||||||
|
,") | text | | not null |
|
||||||
|
Indexes:
|
||||||
|
"tbl_cluster_pkey" PRIMARY KEY, btree (","")", col1) WITH (fillfactor='75')
|
||||||
|
",") cluster" btree ("time", length(","")"), ","")" text_pattern_ops) WITH (fillfactor='75') CLUSTER
|
||||||
|
|
||||||
|
\d tbl_gistkey
|
||||||
|
Table "public.tbl_gistkey"
|
||||||
|
Column | Type | Collation | Nullable | Default
|
||||||
|
--------+---------+-----------+----------+---------
|
||||||
|
id | integer | | not null |
|
||||||
|
c | circle | | |
|
||||||
|
Indexes:
|
||||||
|
"tbl_gistkey_pkey" PRIMARY KEY, btree (id)
|
||||||
|
"cidx_circle" gist (c) CLUSTER
|
||||||
|
|
||||||
|
\d tbl_only_ckey
|
||||||
|
Table "public.tbl_only_ckey"
|
||||||
|
Column | Type | Collation | Nullable | Default
|
||||||
|
--------+-----------------------------+-----------+----------+---------
|
||||||
|
col1 | integer | | |
|
||||||
|
col2 | timestamp without time zone | | |
|
||||||
|
,") | text | | |
|
||||||
|
Indexes:
|
||||||
|
"cidx_only_ckey" btree (col2, ","")") CLUSTER
|
||||||
|
|
||||||
|
\d tbl_only_pkey
|
||||||
|
Table "public.tbl_only_pkey"
|
||||||
|
Column | Type | Collation | Nullable | Default
|
||||||
|
--------+---------+-----------+----------+---------
|
||||||
|
col1 | integer | | not null |
|
||||||
|
,") | text | | |
|
||||||
|
Indexes:
|
||||||
|
"tbl_only_pkey_pkey" PRIMARY KEY, btree (col1)
|
||||||
|
|
||||||
|
\d tbl_with_dropped_column
|
||||||
|
Table "public.tbl_with_dropped_column"
|
||||||
|
Column | Type | Collation | Nullable | Default
|
||||||
|
--------+---------+-----------+----------+---------
|
||||||
|
c1 | text | | |
|
||||||
|
id | integer | | not null |
|
||||||
|
c2 | text | | |
|
||||||
|
c3 | text | | |
|
||||||
|
Indexes:
|
||||||
|
"tbl_with_dropped_column_pkey" PRIMARY KEY, btree (id) WITH (fillfactor='75') CLUSTER
|
||||||
|
"idx_c1c2" btree (c1, c2) WITH (fillfactor='75')
|
||||||
|
"idx_c2c1" btree (c2, c1)
|
||||||
|
|
||||||
|
\d tbl_with_dropped_toast
|
||||||
|
Table "public.tbl_with_dropped_toast"
|
||||||
|
Column | Type | Collation | Nullable | Default
|
||||||
|
--------+---------+-----------+----------+---------
|
||||||
|
i | integer | | not null |
|
||||||
|
j | integer | | not null |
|
||||||
|
Indexes:
|
||||||
|
"tbl_with_dropped_toast_pkey" PRIMARY KEY, btree (i, j) CLUSTER
|
||||||
|
|
||||||
|
\d tbl_idxopts
|
||||||
|
Table "public.tbl_idxopts"
|
||||||
|
Column | Type | Collation | Nullable | Default
|
||||||
|
--------+---------+-----------+----------+---------
|
||||||
|
i | integer | | not null |
|
||||||
|
t | text | | |
|
||||||
|
Indexes:
|
||||||
|
"tbl_idxopts_pkey" PRIMARY KEY, btree (i)
|
||||||
|
"idxopts_t" btree (t DESC NULLS LAST) WHERE t <> 'aaa'::text
|
||||||
|
|
@ -177,81 +177,6 @@ INFO: repacking table "tbl_idxopts"
|
|||||||
INFO: repacking table "tbl_with_toast"
|
INFO: repacking table "tbl_with_toast"
|
||||||
INFO: repacking table "tbl_with_mod_column_storage"
|
INFO: repacking table "tbl_with_mod_column_storage"
|
||||||
INFO: repacking table "tbl_order"
|
INFO: repacking table "tbl_order"
|
||||||
--
|
|
||||||
-- after
|
|
||||||
--
|
|
||||||
\d tbl_cluster
|
|
||||||
Table "public.tbl_cluster"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+-----------------------------+-----------
|
|
||||||
col1 | integer | not null
|
|
||||||
time | timestamp without time zone |
|
|
||||||
,") | text | not null
|
|
||||||
Indexes:
|
|
||||||
"tbl_cluster_pkey" PRIMARY KEY, btree (","")", col1) WITH (fillfactor='75')
|
|
||||||
",") cluster" btree ("time", length(","")"), ","")" text_pattern_ops) WITH (fillfactor='75') CLUSTER
|
|
||||||
|
|
||||||
\d tbl_gistkey
|
|
||||||
Table "public.tbl_gistkey"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
id | integer | not null
|
|
||||||
c | circle |
|
|
||||||
Indexes:
|
|
||||||
"tbl_gistkey_pkey" PRIMARY KEY, btree (id)
|
|
||||||
"cidx_circle" gist (c) CLUSTER
|
|
||||||
|
|
||||||
\d tbl_only_ckey
|
|
||||||
Table "public.tbl_only_ckey"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+-----------------------------+-----------
|
|
||||||
col1 | integer |
|
|
||||||
col2 | timestamp without time zone |
|
|
||||||
,") | text |
|
|
||||||
Indexes:
|
|
||||||
"cidx_only_ckey" btree (col2, ","")") CLUSTER
|
|
||||||
|
|
||||||
\d tbl_only_pkey
|
|
||||||
Table "public.tbl_only_pkey"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
col1 | integer | not null
|
|
||||||
,") | text |
|
|
||||||
Indexes:
|
|
||||||
"tbl_only_pkey_pkey" PRIMARY KEY, btree (col1)
|
|
||||||
|
|
||||||
\d tbl_with_dropped_column
|
|
||||||
Table "public.tbl_with_dropped_column"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
c1 | text |
|
|
||||||
id | integer | not null
|
|
||||||
c2 | text |
|
|
||||||
c3 | text |
|
|
||||||
Indexes:
|
|
||||||
"tbl_with_dropped_column_pkey" PRIMARY KEY, btree (id) WITH (fillfactor='75') CLUSTER
|
|
||||||
"idx_c1c2" btree (c1, c2) WITH (fillfactor='75')
|
|
||||||
"idx_c2c1" btree (c2, c1)
|
|
||||||
|
|
||||||
\d tbl_with_dropped_toast
|
|
||||||
Table "public.tbl_with_dropped_toast"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
i | integer | not null
|
|
||||||
j | integer | not null
|
|
||||||
Indexes:
|
|
||||||
"tbl_with_dropped_toast_pkey" PRIMARY KEY, btree (i, j) CLUSTER
|
|
||||||
|
|
||||||
\d tbl_idxopts
|
|
||||||
Table "public.tbl_idxopts"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
i | integer | not null
|
|
||||||
t | text |
|
|
||||||
Indexes:
|
|
||||||
"tbl_idxopts_pkey" PRIMARY KEY, btree (i)
|
|
||||||
"idxopts_t" btree (t DESC NULLS LAST) WHERE t <> 'aaa'::text
|
|
||||||
|
|
||||||
SELECT col1, to_char("time", 'YYYY-MM-DD HH24:MI:SS'), ","")" FROM tbl_cluster ORDER BY 1, 2;
|
SELECT col1, to_char("time", 'YYYY-MM-DD HH24:MI:SS'), ","")" FROM tbl_cluster ORDER BY 1, 2;
|
||||||
col1 | to_char | ,")
|
col1 | to_char | ,")
|
||||||
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -177,81 +177,6 @@ INFO: repacking table "tbl_idxopts"
|
|||||||
INFO: repacking table "tbl_with_toast"
|
INFO: repacking table "tbl_with_toast"
|
||||||
INFO: repacking table "tbl_with_mod_column_storage"
|
INFO: repacking table "tbl_with_mod_column_storage"
|
||||||
INFO: repacking table "tbl_order"
|
INFO: repacking table "tbl_order"
|
||||||
--
|
|
||||||
-- after
|
|
||||||
--
|
|
||||||
\d tbl_cluster
|
|
||||||
Table "public.tbl_cluster"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+-----------------------------+-----------
|
|
||||||
col1 | integer | not null
|
|
||||||
time | timestamp without time zone |
|
|
||||||
,") | text | not null
|
|
||||||
Indexes:
|
|
||||||
"tbl_cluster_pkey" PRIMARY KEY, btree (","")", col1) WITH (fillfactor='75')
|
|
||||||
",") cluster" btree ("time", length(","")"), ","")" text_pattern_ops) WITH (fillfactor='75') CLUSTER
|
|
||||||
|
|
||||||
\d tbl_gistkey
|
|
||||||
Table "public.tbl_gistkey"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
id | integer | not null
|
|
||||||
c | circle |
|
|
||||||
Indexes:
|
|
||||||
"tbl_gistkey_pkey" PRIMARY KEY, btree (id)
|
|
||||||
"cidx_circle" gist (c) CLUSTER
|
|
||||||
|
|
||||||
\d tbl_only_ckey
|
|
||||||
Table "public.tbl_only_ckey"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+-----------------------------+-----------
|
|
||||||
col1 | integer |
|
|
||||||
col2 | timestamp without time zone |
|
|
||||||
,") | text |
|
|
||||||
Indexes:
|
|
||||||
"cidx_only_ckey" btree (col2, ","")") CLUSTER
|
|
||||||
|
|
||||||
\d tbl_only_pkey
|
|
||||||
Table "public.tbl_only_pkey"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
col1 | integer | not null
|
|
||||||
,") | text |
|
|
||||||
Indexes:
|
|
||||||
"tbl_only_pkey_pkey" PRIMARY KEY, btree (col1)
|
|
||||||
|
|
||||||
\d tbl_with_dropped_column
|
|
||||||
Table "public.tbl_with_dropped_column"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
c1 | text |
|
|
||||||
id | integer | not null
|
|
||||||
c2 | text |
|
|
||||||
c3 | text |
|
|
||||||
Indexes:
|
|
||||||
"tbl_with_dropped_column_pkey" PRIMARY KEY, btree (id) WITH (fillfactor='75') CLUSTER
|
|
||||||
"idx_c1c2" btree (c1, c2) WITH (fillfactor='75')
|
|
||||||
"idx_c2c1" btree (c2, c1)
|
|
||||||
|
|
||||||
\d tbl_with_dropped_toast
|
|
||||||
Table "public.tbl_with_dropped_toast"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
i | integer | not null
|
|
||||||
j | integer | not null
|
|
||||||
Indexes:
|
|
||||||
"tbl_with_dropped_toast_pkey" PRIMARY KEY, btree (i, j) CLUSTER
|
|
||||||
|
|
||||||
\d tbl_idxopts
|
|
||||||
Table "public.tbl_idxopts"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
i | integer | not null
|
|
||||||
t | text |
|
|
||||||
Indexes:
|
|
||||||
"tbl_idxopts_pkey" PRIMARY KEY, btree (i)
|
|
||||||
"idxopts_t" btree (t DESC NULLS LAST) WHERE t <> 'aaa'::text
|
|
||||||
|
|
||||||
SELECT col1, to_char("time", 'YYYY-MM-DD HH24:MI:SS'), ","")" FROM tbl_cluster ORDER BY 1, 2;
|
SELECT col1, to_char("time", 'YYYY-MM-DD HH24:MI:SS'), ","")" FROM tbl_cluster ORDER BY 1, 2;
|
||||||
col1 | to_char | ,")
|
col1 | to_char | ,")
|
||||||
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -177,81 +177,6 @@ INFO: repacking table "tbl_idxopts"
|
|||||||
INFO: repacking table "tbl_with_toast"
|
INFO: repacking table "tbl_with_toast"
|
||||||
INFO: repacking table "tbl_with_mod_column_storage"
|
INFO: repacking table "tbl_with_mod_column_storage"
|
||||||
INFO: repacking table "tbl_order"
|
INFO: repacking table "tbl_order"
|
||||||
--
|
|
||||||
-- after
|
|
||||||
--
|
|
||||||
\d tbl_cluster
|
|
||||||
Table "public.tbl_cluster"
|
|
||||||
Column | Type | Collation | Nullable | Default
|
|
||||||
--------+-----------------------------+-----------+----------+---------
|
|
||||||
col1 | integer | | not null |
|
|
||||||
time | timestamp without time zone | | |
|
|
||||||
,") | text | | not null |
|
|
||||||
Indexes:
|
|
||||||
"tbl_cluster_pkey" PRIMARY KEY, btree (","")", col1) WITH (fillfactor='75')
|
|
||||||
",") cluster" btree ("time", length(","")"), ","")" text_pattern_ops) WITH (fillfactor='75') CLUSTER
|
|
||||||
|
|
||||||
\d tbl_gistkey
|
|
||||||
Table "public.tbl_gistkey"
|
|
||||||
Column | Type | Collation | Nullable | Default
|
|
||||||
--------+---------+-----------+----------+---------
|
|
||||||
id | integer | | not null |
|
|
||||||
c | circle | | |
|
|
||||||
Indexes:
|
|
||||||
"tbl_gistkey_pkey" PRIMARY KEY, btree (id)
|
|
||||||
"cidx_circle" gist (c) CLUSTER
|
|
||||||
|
|
||||||
\d tbl_only_ckey
|
|
||||||
Table "public.tbl_only_ckey"
|
|
||||||
Column | Type | Collation | Nullable | Default
|
|
||||||
--------+-----------------------------+-----------+----------+---------
|
|
||||||
col1 | integer | | |
|
|
||||||
col2 | timestamp without time zone | | |
|
|
||||||
,") | text | | |
|
|
||||||
Indexes:
|
|
||||||
"cidx_only_ckey" btree (col2, ","")") CLUSTER
|
|
||||||
|
|
||||||
\d tbl_only_pkey
|
|
||||||
Table "public.tbl_only_pkey"
|
|
||||||
Column | Type | Collation | Nullable | Default
|
|
||||||
--------+---------+-----------+----------+---------
|
|
||||||
col1 | integer | | not null |
|
|
||||||
,") | text | | |
|
|
||||||
Indexes:
|
|
||||||
"tbl_only_pkey_pkey" PRIMARY KEY, btree (col1)
|
|
||||||
|
|
||||||
\d tbl_with_dropped_column
|
|
||||||
Table "public.tbl_with_dropped_column"
|
|
||||||
Column | Type | Collation | Nullable | Default
|
|
||||||
--------+---------+-----------+----------+---------
|
|
||||||
c1 | text | | |
|
|
||||||
id | integer | | not null |
|
|
||||||
c2 | text | | |
|
|
||||||
c3 | text | | |
|
|
||||||
Indexes:
|
|
||||||
"tbl_with_dropped_column_pkey" PRIMARY KEY, btree (id) WITH (fillfactor='75') CLUSTER
|
|
||||||
"idx_c1c2" btree (c1, c2) WITH (fillfactor='75')
|
|
||||||
"idx_c2c1" btree (c2, c1)
|
|
||||||
|
|
||||||
\d tbl_with_dropped_toast
|
|
||||||
Table "public.tbl_with_dropped_toast"
|
|
||||||
Column | Type | Collation | Nullable | Default
|
|
||||||
--------+---------+-----------+----------+---------
|
|
||||||
i | integer | | not null |
|
|
||||||
j | integer | | not null |
|
|
||||||
Indexes:
|
|
||||||
"tbl_with_dropped_toast_pkey" PRIMARY KEY, btree (i, j) CLUSTER
|
|
||||||
|
|
||||||
\d tbl_idxopts
|
|
||||||
Table "public.tbl_idxopts"
|
|
||||||
Column | Type | Collation | Nullable | Default
|
|
||||||
--------+---------+-----------+----------+---------
|
|
||||||
i | integer | | not null |
|
|
||||||
t | text | | |
|
|
||||||
Indexes:
|
|
||||||
"tbl_idxopts_pkey" PRIMARY KEY, btree (i)
|
|
||||||
"idxopts_t" btree (t DESC NULLS LAST) WHERE t <> 'aaa'::text
|
|
||||||
|
|
||||||
SELECT col1, to_char("time", 'YYYY-MM-DD HH24:MI:SS'), ","")" FROM tbl_cluster ORDER BY 1, 2;
|
SELECT col1, to_char("time", 'YYYY-MM-DD HH24:MI:SS'), ","")" FROM tbl_cluster ORDER BY 1, 2;
|
||||||
col1 | to_char | ,")
|
col1 | to_char | ,")
|
||||||
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -177,81 +177,6 @@ INFO: repacking table "tbl_idxopts"
|
|||||||
INFO: repacking table "tbl_with_toast"
|
INFO: repacking table "tbl_with_toast"
|
||||||
INFO: repacking table "tbl_with_mod_column_storage"
|
INFO: repacking table "tbl_with_mod_column_storage"
|
||||||
INFO: repacking table "tbl_order"
|
INFO: repacking table "tbl_order"
|
||||||
--
|
|
||||||
-- after
|
|
||||||
--
|
|
||||||
\d tbl_cluster
|
|
||||||
Table "public.tbl_cluster"
|
|
||||||
Column | Type | Collation | Nullable | Default
|
|
||||||
--------+-----------------------------+-----------+----------+---------
|
|
||||||
col1 | integer | | not null |
|
|
||||||
time | timestamp without time zone | | |
|
|
||||||
,") | text | | not null |
|
|
||||||
Indexes:
|
|
||||||
"tbl_cluster_pkey" PRIMARY KEY, btree (","")", col1) WITH (fillfactor='75')
|
|
||||||
",") cluster" btree ("time", length(","")"), ","")" text_pattern_ops) WITH (fillfactor='75') CLUSTER
|
|
||||||
|
|
||||||
\d tbl_gistkey
|
|
||||||
Table "public.tbl_gistkey"
|
|
||||||
Column | Type | Collation | Nullable | Default
|
|
||||||
--------+---------+-----------+----------+---------
|
|
||||||
id | integer | | not null |
|
|
||||||
c | circle | | |
|
|
||||||
Indexes:
|
|
||||||
"tbl_gistkey_pkey" PRIMARY KEY, btree (id)
|
|
||||||
"cidx_circle" gist (c) CLUSTER
|
|
||||||
|
|
||||||
\d tbl_only_ckey
|
|
||||||
Table "public.tbl_only_ckey"
|
|
||||||
Column | Type | Collation | Nullable | Default
|
|
||||||
--------+-----------------------------+-----------+----------+---------
|
|
||||||
col1 | integer | | |
|
|
||||||
col2 | timestamp without time zone | | |
|
|
||||||
,") | text | | |
|
|
||||||
Indexes:
|
|
||||||
"cidx_only_ckey" btree (col2, ","")") CLUSTER
|
|
||||||
|
|
||||||
\d tbl_only_pkey
|
|
||||||
Table "public.tbl_only_pkey"
|
|
||||||
Column | Type | Collation | Nullable | Default
|
|
||||||
--------+---------+-----------+----------+---------
|
|
||||||
col1 | integer | | not null |
|
|
||||||
,") | text | | |
|
|
||||||
Indexes:
|
|
||||||
"tbl_only_pkey_pkey" PRIMARY KEY, btree (col1)
|
|
||||||
|
|
||||||
\d tbl_with_dropped_column
|
|
||||||
Table "public.tbl_with_dropped_column"
|
|
||||||
Column | Type | Collation | Nullable | Default
|
|
||||||
--------+---------+-----------+----------+---------
|
|
||||||
c1 | text | | |
|
|
||||||
id | integer | | not null |
|
|
||||||
c2 | text | | |
|
|
||||||
c3 | text | | |
|
|
||||||
Indexes:
|
|
||||||
"tbl_with_dropped_column_pkey" PRIMARY KEY, btree (id) WITH (fillfactor='75') CLUSTER
|
|
||||||
"idx_c1c2" btree (c1, c2) WITH (fillfactor='75')
|
|
||||||
"idx_c2c1" btree (c2, c1)
|
|
||||||
|
|
||||||
\d tbl_with_dropped_toast
|
|
||||||
Table "public.tbl_with_dropped_toast"
|
|
||||||
Column | Type | Collation | Nullable | Default
|
|
||||||
--------+---------+-----------+----------+---------
|
|
||||||
i | integer | | not null |
|
|
||||||
j | integer | | not null |
|
|
||||||
Indexes:
|
|
||||||
"tbl_with_dropped_toast_pkey" PRIMARY KEY, btree (i, j) CLUSTER
|
|
||||||
|
|
||||||
\d tbl_idxopts
|
|
||||||
Table "public.tbl_idxopts"
|
|
||||||
Column | Type | Collation | Nullable | Default
|
|
||||||
--------+---------+-----------+----------+---------
|
|
||||||
i | integer | | not null |
|
|
||||||
t | text | | |
|
|
||||||
Indexes:
|
|
||||||
"tbl_idxopts_pkey" PRIMARY KEY, btree (i)
|
|
||||||
"idxopts_t" btree (t DESC NULLS LAST) WHERE t <> 'aaa'::text
|
|
||||||
|
|
||||||
SELECT col1, to_char("time", 'YYYY-MM-DD HH24:MI:SS'), ","")" FROM tbl_cluster ORDER BY 1, 2;
|
SELECT col1, to_char("time", 'YYYY-MM-DD HH24:MI:SS'), ","")" FROM tbl_cluster ORDER BY 1, 2;
|
||||||
col1 | to_char | ,")
|
col1 | to_char | ,")
|
||||||
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -177,81 +177,6 @@ INFO: repacking table "tbl_idxopts"
|
|||||||
INFO: repacking table "tbl_with_toast"
|
INFO: repacking table "tbl_with_toast"
|
||||||
INFO: repacking table "tbl_with_mod_column_storage"
|
INFO: repacking table "tbl_with_mod_column_storage"
|
||||||
INFO: repacking table "tbl_order"
|
INFO: repacking table "tbl_order"
|
||||||
--
|
|
||||||
-- after
|
|
||||||
--
|
|
||||||
\d tbl_cluster
|
|
||||||
Table "public.tbl_cluster"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+-----------------------------+-----------
|
|
||||||
col1 | integer | not null
|
|
||||||
time | timestamp without time zone |
|
|
||||||
,") | text | not null
|
|
||||||
Indexes:
|
|
||||||
"tbl_cluster_pkey" PRIMARY KEY, btree (","")", col1) WITH (fillfactor='75')
|
|
||||||
",") cluster" btree ("time", length(","")"), ","")" text_pattern_ops) WITH (fillfactor='75') CLUSTER
|
|
||||||
|
|
||||||
\d tbl_gistkey
|
|
||||||
Table "public.tbl_gistkey"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
id | integer | not null
|
|
||||||
c | circle |
|
|
||||||
Indexes:
|
|
||||||
"tbl_gistkey_pkey" PRIMARY KEY, btree (id)
|
|
||||||
"cidx_circle" gist (c) CLUSTER
|
|
||||||
|
|
||||||
\d tbl_only_ckey
|
|
||||||
Table "public.tbl_only_ckey"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+-----------------------------+-----------
|
|
||||||
col1 | integer |
|
|
||||||
col2 | timestamp without time zone |
|
|
||||||
,") | text |
|
|
||||||
Indexes:
|
|
||||||
"cidx_only_ckey" btree (col2, ","")") CLUSTER
|
|
||||||
|
|
||||||
\d tbl_only_pkey
|
|
||||||
Table "public.tbl_only_pkey"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
col1 | integer | not null
|
|
||||||
,") | text |
|
|
||||||
Indexes:
|
|
||||||
"tbl_only_pkey_pkey" PRIMARY KEY, btree (col1)
|
|
||||||
|
|
||||||
\d tbl_with_dropped_column
|
|
||||||
Table "public.tbl_with_dropped_column"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
c1 | text |
|
|
||||||
id | integer | not null
|
|
||||||
c2 | text |
|
|
||||||
c3 | text |
|
|
||||||
Indexes:
|
|
||||||
"tbl_with_dropped_column_pkey" PRIMARY KEY, btree (id) WITH (fillfactor='75') CLUSTER
|
|
||||||
"idx_c1c2" btree (c1, c2) WITH (fillfactor='75')
|
|
||||||
"idx_c2c1" btree (c2, c1)
|
|
||||||
|
|
||||||
\d tbl_with_dropped_toast
|
|
||||||
Table "public.tbl_with_dropped_toast"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
i | integer | not null
|
|
||||||
j | integer | not null
|
|
||||||
Indexes:
|
|
||||||
"tbl_with_dropped_toast_pkey" PRIMARY KEY, btree (i, j) CLUSTER
|
|
||||||
|
|
||||||
\d tbl_idxopts
|
|
||||||
Table "public.tbl_idxopts"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
i | integer | not null
|
|
||||||
t | text |
|
|
||||||
Indexes:
|
|
||||||
"tbl_idxopts_pkey" PRIMARY KEY, btree (i)
|
|
||||||
"idxopts_t" btree (t DESC NULLS LAST) WHERE t <> 'aaa'::text
|
|
||||||
|
|
||||||
SELECT col1, to_char("time", 'YYYY-MM-DD HH24:MI:SS'), ","")" FROM tbl_cluster ORDER BY 1, 2;
|
SELECT col1, to_char("time", 'YYYY-MM-DD HH24:MI:SS'), ","")" FROM tbl_cluster ORDER BY 1, 2;
|
||||||
col1 | to_char | ,")
|
col1 | to_char | ,")
|
||||||
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -177,81 +177,6 @@ INFO: repacking table "tbl_idxopts"
|
|||||||
INFO: repacking table "tbl_with_toast"
|
INFO: repacking table "tbl_with_toast"
|
||||||
INFO: repacking table "tbl_with_mod_column_storage"
|
INFO: repacking table "tbl_with_mod_column_storage"
|
||||||
INFO: repacking table "tbl_order"
|
INFO: repacking table "tbl_order"
|
||||||
--
|
|
||||||
-- after
|
|
||||||
--
|
|
||||||
\d tbl_cluster
|
|
||||||
Table "public.tbl_cluster"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+-----------------------------+-----------
|
|
||||||
col1 | integer | not null
|
|
||||||
time | timestamp without time zone |
|
|
||||||
,") | text | not null
|
|
||||||
Indexes:
|
|
||||||
"tbl_cluster_pkey" PRIMARY KEY, btree (","")", col1) WITH (fillfactor='75')
|
|
||||||
",") cluster" btree ("time", length(","")"), ","")" text_pattern_ops) WITH (fillfactor='75') CLUSTER
|
|
||||||
|
|
||||||
\d tbl_gistkey
|
|
||||||
Table "public.tbl_gistkey"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
id | integer | not null
|
|
||||||
c | circle |
|
|
||||||
Indexes:
|
|
||||||
"tbl_gistkey_pkey" PRIMARY KEY, btree (id)
|
|
||||||
"cidx_circle" gist (c) CLUSTER
|
|
||||||
|
|
||||||
\d tbl_only_ckey
|
|
||||||
Table "public.tbl_only_ckey"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+-----------------------------+-----------
|
|
||||||
col1 | integer |
|
|
||||||
col2 | timestamp without time zone |
|
|
||||||
,") | text |
|
|
||||||
Indexes:
|
|
||||||
"cidx_only_ckey" btree (col2, ","")") CLUSTER
|
|
||||||
|
|
||||||
\d tbl_only_pkey
|
|
||||||
Table "public.tbl_only_pkey"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
col1 | integer | not null
|
|
||||||
,") | text |
|
|
||||||
Indexes:
|
|
||||||
"tbl_only_pkey_pkey" PRIMARY KEY, btree (col1)
|
|
||||||
|
|
||||||
\d tbl_with_dropped_column
|
|
||||||
Table "public.tbl_with_dropped_column"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
c1 | text |
|
|
||||||
id | integer | not null
|
|
||||||
c2 | text |
|
|
||||||
c3 | text |
|
|
||||||
Indexes:
|
|
||||||
"tbl_with_dropped_column_pkey" PRIMARY KEY, btree (id) WITH (fillfactor='75') CLUSTER
|
|
||||||
"idx_c1c2" btree (c1, c2) WITH (fillfactor='75')
|
|
||||||
"idx_c2c1" btree (c2, c1)
|
|
||||||
|
|
||||||
\d tbl_with_dropped_toast
|
|
||||||
Table "public.tbl_with_dropped_toast"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
i | integer | not null
|
|
||||||
j | integer | not null
|
|
||||||
Indexes:
|
|
||||||
"tbl_with_dropped_toast_pkey" PRIMARY KEY, btree (i, j) CLUSTER
|
|
||||||
|
|
||||||
\d tbl_idxopts
|
|
||||||
Table "public.tbl_idxopts"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
i | integer | not null
|
|
||||||
t | text |
|
|
||||||
Indexes:
|
|
||||||
"tbl_idxopts_pkey" PRIMARY KEY, btree (i)
|
|
||||||
"idxopts_t" btree (t DESC NULLS LAST) WHERE t <> 'aaa'::text
|
|
||||||
|
|
||||||
SELECT col1, to_char("time", 'YYYY-MM-DD HH24:MI:SS'), ","")" FROM tbl_cluster ORDER BY 1, 2;
|
SELECT col1, to_char("time", 'YYYY-MM-DD HH24:MI:SS'), ","")" FROM tbl_cluster ORDER BY 1, 2;
|
||||||
col1 | to_char | ,")
|
col1 | to_char | ,")
|
||||||
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -177,81 +177,6 @@ INFO: repacking table "tbl_idxopts"
|
|||||||
INFO: repacking table "tbl_with_toast"
|
INFO: repacking table "tbl_with_toast"
|
||||||
INFO: repacking table "tbl_with_mod_column_storage"
|
INFO: repacking table "tbl_with_mod_column_storage"
|
||||||
INFO: repacking table "tbl_order"
|
INFO: repacking table "tbl_order"
|
||||||
--
|
|
||||||
-- after
|
|
||||||
--
|
|
||||||
\d tbl_cluster
|
|
||||||
Table "public.tbl_cluster"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+-----------------------------+-----------
|
|
||||||
col1 | integer | not null
|
|
||||||
time | timestamp without time zone |
|
|
||||||
,") | text | not null
|
|
||||||
Indexes:
|
|
||||||
"tbl_cluster_pkey" PRIMARY KEY, btree (","")", col1) WITH (fillfactor=75)
|
|
||||||
",") cluster" btree ("time", length(","")"), ","")" text_pattern_ops) WITH (fillfactor=75) CLUSTER
|
|
||||||
|
|
||||||
\d tbl_gistkey
|
|
||||||
Table "public.tbl_gistkey"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
id | integer | not null
|
|
||||||
c | circle |
|
|
||||||
Indexes:
|
|
||||||
"tbl_gistkey_pkey" PRIMARY KEY, btree (id)
|
|
||||||
"cidx_circle" gist (c) CLUSTER
|
|
||||||
|
|
||||||
\d tbl_only_ckey
|
|
||||||
Table "public.tbl_only_ckey"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+-----------------------------+-----------
|
|
||||||
col1 | integer |
|
|
||||||
col2 | timestamp without time zone |
|
|
||||||
,") | text |
|
|
||||||
Indexes:
|
|
||||||
"cidx_only_ckey" btree (col2, ","")") CLUSTER
|
|
||||||
|
|
||||||
\d tbl_only_pkey
|
|
||||||
Table "public.tbl_only_pkey"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
col1 | integer | not null
|
|
||||||
,") | text |
|
|
||||||
Indexes:
|
|
||||||
"tbl_only_pkey_pkey" PRIMARY KEY, btree (col1)
|
|
||||||
|
|
||||||
\d tbl_with_dropped_column
|
|
||||||
Table "public.tbl_with_dropped_column"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
c1 | text |
|
|
||||||
id | integer | not null
|
|
||||||
c2 | text |
|
|
||||||
c3 | text |
|
|
||||||
Indexes:
|
|
||||||
"tbl_with_dropped_column_pkey" PRIMARY KEY, btree (id) WITH (fillfactor=75) CLUSTER
|
|
||||||
"idx_c1c2" btree (c1, c2) WITH (fillfactor=75)
|
|
||||||
"idx_c2c1" btree (c2, c1)
|
|
||||||
|
|
||||||
\d tbl_with_dropped_toast
|
|
||||||
Table "public.tbl_with_dropped_toast"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
i | integer | not null
|
|
||||||
j | integer | not null
|
|
||||||
Indexes:
|
|
||||||
"tbl_with_dropped_toast_pkey" PRIMARY KEY, btree (i, j) CLUSTER
|
|
||||||
|
|
||||||
\d tbl_idxopts
|
|
||||||
Table "public.tbl_idxopts"
|
|
||||||
Column | Type | Modifiers
|
|
||||||
--------+---------+-----------
|
|
||||||
i | integer | not null
|
|
||||||
t | text |
|
|
||||||
Indexes:
|
|
||||||
"tbl_idxopts_pkey" PRIMARY KEY, btree (i)
|
|
||||||
"idxopts_t" btree (t DESC NULLS LAST) WHERE t <> 'aaa'::text
|
|
||||||
|
|
||||||
SELECT col1, to_char("time", 'YYYY-MM-DD HH24:MI:SS'), ","")" FROM tbl_cluster ORDER BY 1, 2;
|
SELECT col1, to_char("time", 'YYYY-MM-DD HH24:MI:SS'), ","")" FROM tbl_cluster ORDER BY 1, 2;
|
||||||
col1 | to_char | ,")
|
col1 | to_char | ,")
|
||||||
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
11
regress/sql/after-schema.sql
Normal file
11
regress/sql/after-schema.sql
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--
|
||||||
|
-- tables schema after running repack
|
||||||
|
--
|
||||||
|
|
||||||
|
\d tbl_cluster
|
||||||
|
\d tbl_gistkey
|
||||||
|
\d tbl_only_ckey
|
||||||
|
\d tbl_only_pkey
|
||||||
|
\d tbl_with_dropped_column
|
||||||
|
\d tbl_with_dropped_toast
|
||||||
|
\d tbl_idxopts
|
@ -147,6 +147,7 @@ INSERT INTO tbl_idxopts VALUES (0, 'abc'), (1, 'aaa'), (2, NULL), (3, 'bbb');
|
|||||||
INSERT INTO tbl_order SELECT generate_series(100, 51, -1);
|
INSERT INTO tbl_order SELECT generate_series(100, 51, -1);
|
||||||
CLUSTER tbl_order USING tbl_order_pkey;
|
CLUSTER tbl_order USING tbl_order_pkey;
|
||||||
INSERT INTO tbl_order SELECT generate_series(50, 1, -1);
|
INSERT INTO tbl_order SELECT generate_series(50, 1, -1);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- before
|
-- before
|
||||||
--
|
--
|
||||||
@ -163,18 +164,6 @@ SELECT * FROM tbl_with_dropped_toast;
|
|||||||
\! pg_repack --dbname=contrib_regression --table=tbl_badindex
|
\! pg_repack --dbname=contrib_regression --table=tbl_badindex
|
||||||
\! pg_repack --dbname=contrib_regression
|
\! pg_repack --dbname=contrib_regression
|
||||||
|
|
||||||
--
|
|
||||||
-- after
|
|
||||||
--
|
|
||||||
|
|
||||||
\d tbl_cluster
|
|
||||||
\d tbl_gistkey
|
|
||||||
\d tbl_only_ckey
|
|
||||||
\d tbl_only_pkey
|
|
||||||
\d tbl_with_dropped_column
|
|
||||||
\d tbl_with_dropped_toast
|
|
||||||
\d tbl_idxopts
|
|
||||||
|
|
||||||
SELECT col1, to_char("time", 'YYYY-MM-DD HH24:MI:SS'), ","")" FROM tbl_cluster ORDER BY 1, 2;
|
SELECT col1, to_char("time", 'YYYY-MM-DD HH24:MI:SS'), ","")" FROM tbl_cluster ORDER BY 1, 2;
|
||||||
SELECT * FROM tbl_only_ckey ORDER BY 1;
|
SELECT * FROM tbl_only_ckey ORDER BY 1;
|
||||||
SELECT * FROM tbl_only_pkey ORDER BY 1;
|
SELECT * FROM tbl_only_pkey ORDER BY 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user