pg_repack.git / summary / log / commit / refs
commit 0cb08e5512206eb73dfd768ae258e528cc183054
Author: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Date: Tue Mar 20 11:37:04 2018 +0000
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
regress/Makefile | 2 +-
regress/expected/after-schema.out | 75 +++++++++++++++++++++++++++++++++++++
regress/expected/after-schema_1.out | 75 +++++++++++++++++++++++++++++++++++++
regress/expected/repack.out | 75 -------------------------------------
regress/expected/repack_1.out | 75 -------------------------------------
regress/expected/repack_2.out | 75 -------------------------------------
regress/expected/repack_3.out | 75 -------------------------------------
regress/expected/repack_4.out | 75 -------------------------------------
regress/expected/repack_5.out | 75 -------------------------------------
regress/expected/repack_6.out | 75 -------------------------------------
regress/sql/after-schema.sql | 11 ++++++
regress/sql/repack.sql | 13 +------
12 files changed, 163 insertions(+), 538 deletions(-)
diff --git a/regress/Makefile b/regress/Makefile
index 006c332..28b4663 100644
--- a/regress/Makefile
+++ b/regress/Makefile
@@ -17,7 +17,7 @@ INTVERSION := $(shell echo $$(($$(echo $(VERSION).0 | sed 's/\([[:digit:]]\{1,\}
# 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
PGXS := $(shell $(PG_CONFIG) --pgxs)
diff --git a/regress/expected/after-schema.out b/regress/expected/after-schema.out
new file mode 100644
index 0000000..571f014
--- /dev/null
+++ b/regress/expected/after-schema.out
@@ -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
+
diff --git a/regress/expected/after-schema_1.out b/regress/expected/after-schema_1.out
new file mode 100644
index 0000000..2bd4d74
--- /dev/null
+++ b/regress/expected/after-schema_1.out
@@ -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
+
diff --git a/regress/expected/repack.out b/regress/expected/repack.out
index a18c744..07fc022 100644
--- a/regress/expected/repack.out
+++ b/regress/expected/repack.out
@@ -177,81 +177,6 @@ INFO: repacking table "tbl_idxopts"
INFO: repacking table "tbl_with_toast"
INFO: repacking table "tbl_with_mod_column_storage"
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;
col1 | to_char | ,")
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
diff --git a/regress/expected/repack_1.out b/regress/expected/repack_1.out
index 87cc038..e2047f7 100644
--- a/regress/expected/repack_1.out
+++ b/regress/expected/repack_1.out
@@ -177,81 +177,6 @@ INFO: repacking table "tbl_idxopts"
INFO: repacking table "tbl_with_toast"
INFO: repacking table "tbl_with_mod_column_storage"
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;
col1 | to_char | ,")
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
diff --git a/regress/expected/repack_2.out b/regress/expected/repack_2.out
index 3ceff4d..796b37e 100644
--- a/regress/expected/repack_2.out
+++ b/regress/expected/repack_2.out
@@ -177,81 +177,6 @@ INFO: repacking table "tbl_idxopts"
INFO: repacking table "tbl_with_toast"
INFO: repacking table "tbl_with_mod_column_storage"
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;
col1 | to_char | ,")
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
diff --git a/regress/expected/repack_3.out b/regress/expected/repack_3.out
index a7efdf8..fbe6b91 100644
--- a/regress/expected/repack_3.out
+++ b/regress/expected/repack_3.out
@@ -177,81 +177,6 @@ INFO: repacking table "tbl_idxopts"
INFO: repacking table "tbl_with_toast"
INFO: repacking table "tbl_with_mod_column_storage"
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;
col1 | to_char | ,")
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
diff --git a/regress/expected/repack_4.out b/regress/expected/repack_4.out
index 6e868fa..6aa7cc2 100644
--- a/regress/expected/repack_4.out
+++ b/regress/expected/repack_4.out
@@ -177,81 +177,6 @@ INFO: repacking table "tbl_idxopts"
INFO: repacking table "tbl_with_toast"
INFO: repacking table "tbl_with_mod_column_storage"
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;
col1 | to_char | ,")
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
diff --git a/regress/expected/repack_5.out b/regress/expected/repack_5.out
index 26d02e6..b561e20 100644
--- a/regress/expected/repack_5.out
+++ b/regress/expected/repack_5.out
@@ -177,81 +177,6 @@ INFO: repacking table "tbl_idxopts"
INFO: repacking table "tbl_with_toast"
INFO: repacking table "tbl_with_mod_column_storage"
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;
col1 | to_char | ,")
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
diff --git a/regress/expected/repack_6.out b/regress/expected/repack_6.out
index 0da86a9..7d6c159 100644
--- a/regress/expected/repack_6.out
+++ b/regress/expected/repack_6.out
@@ -177,81 +177,6 @@ INFO: repacking table "tbl_idxopts"
INFO: repacking table "tbl_with_toast"
INFO: repacking table "tbl_with_mod_column_storage"
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;
col1 | to_char | ,")
------+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
diff --git a/regress/sql/after-schema.sql b/regress/sql/after-schema.sql
new file mode 100644
index 0000000..161cf74
--- /dev/null
+++ b/regress/sql/after-schema.sql
@@ -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
diff --git a/regress/sql/repack.sql b/regress/sql/repack.sql
index cb744aa..2f0a0ac 100644
--- a/regress/sql/repack.sql
+++ b/regress/sql/repack.sql
@@ -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);
CLUSTER tbl_order USING tbl_order_pkey;
INSERT INTO tbl_order SELECT generate_series(50, 1, -1);
+
--
-- before
--
@@ -163,18 +164,6 @@ SELECT * FROM tbl_with_dropped_toast;
\! pg_repack --dbname=contrib_regression --table=tbl_badindex
\! 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 * FROM tbl_only_ckey ORDER BY 1;
SELECT * FROM tbl_only_pkey ORDER BY 1;
[parent: 31d15a87e708]