Skip to content

Commit 766722f

Browse files
committed
Merge branch 'amitlan-reg-tests-relopt-quote-fix'
2 parents 668e44e + 4002b4e commit 766722f

File tree

4 files changed

+636
-4
lines changed

4 files changed

+636
-4
lines changed

lib/repack.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@
1616
#include "catalog/dependency.h"
1717
#include "catalog/indexing.h"
1818
#include "catalog/namespace.h"
19+
20+
/*
21+
* utils/rel.h no longer includes pg_am.h as of 9.6, so need to include
22+
* it explicitly.
23+
*/
24+
#if PG_VERSION_NUM >= 90600
25+
#include "catalog/pg_am.h"
26+
#endif
27+
1928
#include "catalog/pg_namespace.h"
2029
#include "catalog/pg_opclass.h"
2130
#include "catalog/pg_type.h"

regress/expected/repack.out

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ INFO: repacking table "tbl_idxopts"
139139
time | timestamp without time zone |
140140
,") | text | not null
141141
Indexes:
142-
"tbl_cluster_pkey" PRIMARY KEY, btree (","")", col1) WITH (fillfactor=75)
143-
",") cluster" btree ("time", length(","")"), ","")" text_pattern_ops) WITH (fillfactor=75) CLUSTER
142+
"tbl_cluster_pkey" PRIMARY KEY, btree (","")", col1) WITH (fillfactor='75')
143+
",") cluster" btree ("time", length(","")"), ","")" text_pattern_ops) WITH (fillfactor='75') CLUSTER
144144

145145
\d tbl_gistkey
146146
Table "public.tbl_gistkey"
@@ -180,8 +180,8 @@ Table "public.tbl_with_dropped_column"
180180
c2 | text |
181181
c3 | text |
182182
Indexes:
183-
"tbl_with_dropped_column_pkey" PRIMARY KEY, btree (id) WITH (fillfactor=75) CLUSTER
184-
"idx_c1c2" btree (c1, c2) WITH (fillfactor=75)
183+
"tbl_with_dropped_column_pkey" PRIMARY KEY, btree (id) WITH (fillfactor='75') CLUSTER
184+
"idx_c1c2" btree (c1, c2) WITH (fillfactor='75')
185185
"idx_c2c1" btree (c2, c1)
186186

187187
\d tbl_with_dropped_toast

0 commit comments

Comments
 (0)