Fix regression while refactoring patch

This commit is contained in:
Steeve Lennmark 2014-01-22 14:55:07 +01:00
parent 1a10df9049
commit e16472419f
2 changed files with 2 additions and 0 deletions

View File

@ -658,6 +658,7 @@ repack_one_database(const char *orderby, char *errbuf, size_t errsize)
table.target_oid = getoid(res, i, c++);
table.target_toast = getoid(res, i, c++);
table.target_tidx = getoid(res, i, c++);
c++; // Skip schemaname
table.pkid = getoid(res, i, c++);
table.ckid = getoid(res, i, c++);

View File

@ -173,6 +173,7 @@ CREATE VIEW repack.tables AS
R.oid AS relid,
R.reltoastrelid AS reltoastrelid,
CASE WHEN R.reltoastrelid = 0 THEN 0 ELSE (SELECT reltoastidxid FROM pg_class WHERE oid = R.reltoastrelid) END AS reltoastidxid,
N.nspname AS schemaname,
PK.indexrelid AS pkid,
CK.indexrelid AS ckid,
repack.get_create_index_type(PK.indexrelid, 'repack.pk_' || R.oid) AS create_pktype,