Skip to content

Commit e164724

Browse files
author
Steeve Lennmark
committed
Fix regression while refactoring patch
1 parent 1a10df9 commit e164724

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

bin/pg_repack.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,7 @@ repack_one_database(const char *orderby, char *errbuf, size_t errsize)
658658
table.target_oid = getoid(res, i, c++);
659659
table.target_toast = getoid(res, i, c++);
660660
table.target_tidx = getoid(res, i, c++);
661+
c++; // Skip schemaname
661662
table.pkid = getoid(res, i, c++);
662663
table.ckid = getoid(res, i, c++);
663664

lib/pg_repack.sql.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ CREATE VIEW repack.tables AS
173173
R.oid AS relid,
174174
R.reltoastrelid AS reltoastrelid,
175175
CASE WHEN R.reltoastrelid = 0 THEN 0 ELSE (SELECT reltoastidxid FROM pg_class WHERE oid = R.reltoastrelid) END AS reltoastidxid,
176+
N.nspname AS schemaname,
176177
PK.indexrelid AS pkid,
177178
CK.indexrelid AS ckid,
178179
repack.get_create_index_type(PK.indexrelid, 'repack.pk_' || R.oid) AS create_pktype,

0 commit comments

Comments
 (0)