RE: Upgrade to 12.2 using same data directory

Поиск
Список
Период
Сортировка
От Mihalidesová Jana
Тема RE: Upgrade to 12.2 using same data directory
Дата
Msg-id 405258c50e63462b900dd891598e32a4@cewexch403.ad.cetin
обсуждение исходный текст
Ответ на Re: Upgrade to 12.2 using same data directory  (Sushant Pawar <sushant.pawar@ashnik.com>)
Ответы Re: Upgrade to 12.2 using same data directory
Список pgsql-general

Hi,

 

The -k option doesn’t work. First is the problem to initialize new cluster to the same directory.

 

 

initdb: directory "$PATH" exists but is not empty

If you want to create a new database system, either remove or empty

the directory "$PATH" or run initdb

with an argument other than "$PATH".

 

 

And if I try to check upgrade from to same data directory

 

 

postgres@celpgsqld401.server.cetin:/pgsql/bin/12.2_nipjd/bin> ./pg_upgrade -b $OLD/bin -B $NEW/bin -d $PG_DATA -D $PG_DATA -k -c

Performing Consistency Checks

-----------------------------

Checking cluster versions

This utility can only upgrade to PostgreSQL version 12.

Failure, exiting

 

 

Jana

 

From: Sushant Pawar <sushant.pawar@ashnik.com>
Sent: Tuesday, February 25, 2020 1:23 PM
To: Mihalidesová Jana <jana.mihalidesova@cetin.cz>
Cc: Josef Šimánek <josef.simanek@gmail.com>; pgsql-general@lists.postgresql.org
Subject: Re: Upgrade to 12.2 using same data directory

 

Hi Mihalidesová,

 

It should work with -k option. Can you share the error that you have received? You can execute pg_upgrade with -c option to identify any possible manual change required.

 


Best Regards,

Sushant Pawar | Database Solution Consultant

ASHNIK TECHNOLOGY SOLUTIONS PVT. LTD.

Skype: sush_531 | T: +91 9769559995 | www.ashnik.com

 

 

 

On Tue, Feb 25, 2020 at 5:35 PM Josef Šimánek <josef.simanek@gmail.com> wrote:

I think that's not possible. What's the reason to reuse old directory?

 

út 25. 2. 2020 v 12:59 odesílatel Mihalidesová Jana <jana.mihalidesova@cetin.cz> napsal:

Hi,

 

Is there possibility to upgrade from 10.6 to 12.2 using exact same data directory? First problem is with initialing of “new” cluster. Then pg_upgrade check fail.

 

 

./pg_upgrade -b $OLD/bin -B $NEWd/bin -d $OLD -D $OLD -k -c

 

 

Thx,

Jana



Obsah této zprávy má výlučně komunikační charakter. Nepředstavuje návrh na uzavření smlouvy či na její změnu ani přijetí případného návrhu. Smlouvy či jejich změny jsou společností CETIN a.s. uzavírány v písemné formě nebo v podobě a postupem podle příslušných všeobecných podmínek společnosti CETIN a.s., a pokud jsou dohodnuty všechny náležitosti. Smlouvy jsou uzavírány oprávněnou osobou na základě písemného pověření. Smlouvy o smlouvě budoucí jsou uzavírány výhradně v písemné formě, vlastnoručně podepsané nebo s uznávaným elektronickým podpisem. Podmínky, za nichž CETIN a.s. přistupuje k jednání o smlouvě a jakými se řídí, jsou dostupné zde.

The content of this message is intended for communication purposes only. It does neither represent any contract proposal, nor its amendment or acceptance of any potential contract proposal. CETIN a.s. concludes contracts or amendments thereto in a written form or in the form and the procedure in accordance with relevant general terms and conditions of CETIN a.s., if all requirements are agreed. Contracts are concluded by an authorized person entitled on the basis of a written authorization. Contracts on a future contract are concluded solely in a written form, self-signed or signed by means of an advanced electronic signature. The conditions under which CETIN a.s. negotiates contracts and under which it proceeds are available here.



Obsah této zprávy má výlučně komunikační charakter. Nepředstavuje návrh na uzavření smlouvy či na její změnu ani přijetí případného návrhu. Smlouvy či jejich změny jsou společností CETIN a.s. uzavírány v písemné formě nebo v podobě a postupem podle příslušných všeobecných podmínek společnosti CETIN a.s., a pokud jsou dohodnuty všechny náležitosti. Smlouvy jsou uzavírány oprávněnou osobou na základě písemného pověření. Smlouvy o smlouvě budoucí jsou uzavírány výhradně v písemné formě, vlastnoručně podepsané nebo s uznávaným elektronickým podpisem. Podmínky, za nichž CETIN a.s. přistupuje k jednání o smlouvě a jakými se řídí, jsou dostupné zde.

The content of this message is intended for communication purposes only. It does neither represent any contract proposal, nor its amendment or acceptance of any potential contract proposal. CETIN a.s. concludes contracts or amendments thereto in a written form or in the form and the procedure in accordance with relevant general terms and conditions of CETIN a.s., if all requirements are agreed. Contracts are concluded by an authorized person entitled on the basis of a written authorization. Contracts on a future contract are concluded solely in a written form, self-signed or signed by means of an advanced electronic signature. The conditions under which CETIN a.s. negotiates contracts and under which it proceeds are available here.

В списке pgsql-general по дате отправления:

Предыдущее
От: Ray O'Donnell
Дата:
Сообщение: Re: Upgrade to 12.2 using same data directory
Следующее
От: Mihalidesová Jana
Дата:
Сообщение: RE: Upgrade to 12.2 using same data directory