diff options
Diffstat (limited to 'contrib/pg_upgrade/check.c')
| -rw-r--r-- | contrib/pg_upgrade/check.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/pg_upgrade/check.c b/contrib/pg_upgrade/check.c index fb35507af10..3a2922681c7 100644 --- a/contrib/pg_upgrade/check.c +++ b/contrib/pg_upgrade/check.c @@ -416,6 +416,11 @@ create_script_for_old_cluster_deletion(migratorContext *ctx, int dbnum; fprintf(script, "\n"); + /* remove PG_VERSION? */ + if (GET_MAJOR_VERSION(ctx->old.major_version) <= 804) + fprintf(script, RM_CMD " %s%s/PG_VERSION\n", + ctx->tablespaces[tblnum], ctx->old.tablespace_suffix); + for (dbnum = 0; dbnum < ctx->new.dbarr.ndbs; dbnum++) { fprintf(script, RMDIR_CMD " %s%s/%d\n", |
