mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Add removal of PG_VERSION to optional old cluster deletion script.
Backpatch to 9.0.X.
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user