From 116fa68097b268a64e2564fdd36528ca557d2aca Mon Sep 17 00:00:00 2001 From: Dmitry Ivanov Date: Mon, 24 Oct 2016 16:54:32 +0300 Subject: [PATCH] set 'include_extensions' to true if tables have been specified --- bin/pg_repack.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/pg_repack.c b/bin/pg_repack.c index 279d5e8..ca75429 100644 --- a/bin/pg_repack.c +++ b/bin/pg_repack.c @@ -625,6 +625,12 @@ repack_one_database(const char *orderby, char *errbuf, size_t errsize) params[iparam++] = tablespace; if (num_tables) { + /* + * Tables have been explicitly specified, + * no need to hide tables of extensions + */ + include_extensions = true; + appendStringInfoString(&sql, "("); for (cell = table_list.head; cell; cell = cell->next) {