pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mihalidesová Jana <jana.mihalidesova@cetin.cz>
To: Josef Šimánek <josef.simanek@gmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: RE: Upgrade to 12.2 using same data directory
Date: Tue, 25 Feb 2020 12:59:26 +0000
Message-ID: <8df5cb6356cf4afdaba1772f7f74bd02@cewexch403.ad.cetin> (raw)
In-Reply-To: <CAFp7QwqP3owBPFZfWz2e7bznv5dVZi1V4DTT1ZYz5RFjXVpeGg@mail.gmail.com>
References: <ff4794552c8e413884351ead4b30cecb@cewexch403.ad.cetin>
	<CAFp7QwqEGUg=DtADt6DUpvi04yjLjRmh1hxhkD6600ccYRbN+w@mail.gmail.com>
	<0c80da35a7fe4c8fa8c085d9569931f6@cewexch403.ad.cetin>
	<CAFp7QwqP3owBPFZfWz2e7bznv5dVZi1V4DTT1ZYz5RFjXVpeGg@mail.gmail.com>

Yes,  that’s what I though, but the pre-upgrade check will be done with downtime.
Ok,
Thanks.

J


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

I think it should be possible to rename old cluster data dir (you can use some suffix) and reuse your current directory name for upgraded cluster.

something similar to (not tested):
mv /alias/data/<db_name> /alias/data/<db_name>.old
./pg_upgrade -b $OLD/bin -B $NEWd/bin -d /alias/data/<db_name>.old -D /alias/data/<db_name> -k -c

út 25. 2. 2020 v 13:52 odesílatel Mihalidesová Jana <jana.mihalidesova@cetin.cz<mailto:jana.mihalidesova@cetin.cz>> napsal:
I think it’s strange to change the data directory $PATH every time I upgrade the software, when the data are the same. I have a specific naming convention not using a db version.

/alias/data/<db_name>

J

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

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<mailto: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<https://www.cetin.cz/cs/jak-cetin-vyjednava-o-smlouve;.

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<https://www.cetin.cz/en/jak-cetin-vyjednava-o-smlouve;.


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<https://www.cetin.cz/cs/jak-cetin-vyjednava-o-smlouve;.

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<https://www.cetin.cz/en/jak-cetin-vyjednava-o-smlouve;.


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<https://www.cetin.cz/cs/jak-cetin-vyjednava-o-smlouve;.

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<https://www.cetin.cz/en/jak-cetin-vyjednava-o-smlouve;.


view thread (11+ messages)  latest in thread

Message-ID: <8df5cb6356cf4afdaba1772f7f74bd02@cewexch403.ad.cetin>
Permalink:  ../8df5cb6356cf4afdaba1772f7f74bd02@cewexch403.ad.cetin/
Also on:    postgresql.org/message-id/8df5cb6356cf4afdaba1772f7f74bd02@cewexch403.ad.cetin

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: jana.mihalidesova@cetin.cz, josef.simanek@gmail.com
  Subject: Re: Upgrade to 12.2 using same data directory
  In-Reply-To: <8df5cb6356cf4afdaba1772f7f74bd02@cewexch403.ad.cetin>
  References: <ff4794552c8e413884351ead4b30cecb@cewexch403.ad.cetin> <CAFp7QwqEGUg=DtADt6DUpvi04yjLjRmh1hxhkD6600ccYRbN+w@mail.gmail.com> <0c80da35a7fe4c8fa8c085d9569931f6@cewexch403.ad.cetin> <CAFp7QwqP3owBPFZfWz2e7bznv5dVZi1V4DTT1ZYz5RFjXVpeGg@mail.gmail.com> <8df5cb6356cf4afdaba1772f7f74bd02@cewexch403.ad.cetin>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox