pg_upgrade question

From: "Lu, Dan" <Dan(dot)Lu(at)sig(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: pg_upgrade question
Date: 2020-12-21 21:03:14
Message-ID: MN2PR19MB3613CC6B528CC555B46FDD9894C00@MN2PR19MB3613.namprd19.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi PostgreSQL Admin,

I am trying to find out if there is any step by step instruction to reconcile old data dir and upgraded data dir after using "-link" option to do an upgrade.

I ran this to do an upgrade from 11.5 to 12.1: pg_upgrade -d /hostname/pg/dev115/data -D /hostname/pg/dev121upg/data --link -b /pgdbadevbal800/pg/PostgreSQL-11.5/bin -B /pgdbadevbal800/pg/PostgreSQL-12.1/bin -p 1432 -P 2432 -v

postgresdbad:dev115:pgdbadevbal800:> pwd
/hostname/pg

postgresdbad:dev115:pgdbadevbal800:> du -sh dev121upg
2.3G dev121upg

postgresdbad:dev115:pgdbadevbal800:> du -sh dev115
22G dev115

My goal is to be able to do an in place upgrade from 11.5 to 12.1 using the same data dir "/hostname/pg/dev115/data". Without the "-link" option I need to double up the space usage for the instance. What is the easiest way to accomplish this task?

Thanks so much for your help.

Dan

________________________________

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2020-12-21 21:22:56 Re: Missing rows after migrating from postgres 11 to 12 with logical replication
Previous Message Lars Vonk 2020-12-21 20:26:00 Re: Missing rows after migrating from postgres 11 to 12 with logical replication