Re: Upgrading postgresql minor version

From: Ron Ben <ronb910(at)walla(dot)co(dot)il>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, "<pgsql-general(at)postgresql(dot)org>" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Upgrading postgresql minor version
Date: 2017-05-10 14:55:50
Message-ID: ~002591329F6886E80003FC8@walla.co.il
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<div><div dir="rtl"><div><br>
<div style="direction: ltr;">I think you miss understood me.</div>
<div style="direction: ltr;">pg_dump dumps the data. the tables, functions and the data saved in them.</div>
<div style="direction: ltr;">I have daily backups for this so i'm not worried.</div>
<div style="direction: ltr;">&nbsp;</div>
<div style="direction: ltr;">What i'm woried about are the "executables files". These files are what is actualy being updated when you update the version.</div>
<div style="direction: ltr;">I want to be able to roll them back in case of upgrade failure <u>without rolling back the data</u>.</div>
<div style="direction: ltr;">&nbsp;</div>
<div style="direction: ltr;">&nbsp;</div>
<div style="direction: ltr;">Basicly what I want is to save on the side all the files that will be change by the update and in case of failure just to replace them back.</div>
<div style="direction: ltr;">Is it doable? How?</div>
</div></div><section class="cust_msg_end"></section><blockquote style="margin:0;margin-bottom:20px;border-top:1px solid #e0e0e0;"><br>ב מאי 10, 2017 16:27, Adrian Klaver כתב:<blockquote style="margin:0;margin-bottom:20px;border-top:1px solid #e0e0e0">On 05/10/2017 06:08 AM, Ron Ben wrote:<br>&gt; I'm about to upgrade my postgresql to the latest 9.3 version<br>&gt; On my test server eveything works.<br>&gt; However I want to save a backup of my production server before the <br>&gt; upgrade...<br>&gt; I'm not sure how I do that.<br><br><a href="https://www.postgresql.org/docs/9.3/static/app-pg-dumpall.html">https://www.postgresql.org/docs/9.3/static/app-pg-dumpall.html</a><br><br>&gt; It says that only system files are changed during upgrade... which <br>&gt; folders exactly I need to save on the side for roll back?<br><br>I would say that would depend on the nature of the release changes.<br><br>&gt; I know I can take a snap shoot of my server before the update but i'm <br>&gt; affried that rolling back to this snap shoot will also roll back the <br>&gt; data itself?<br>&gt; Since after the update the users continue to work I don't want to lose <br>&gt; thier data.<br><br>Well if the upgrade takes then you don't need to rollback. If it did not <br>then the users did not get any work done or any data they entered would <br>be considered suspect. If you are concerned then take another pg_dumpall <br>before rolling back.<br><br><br>&gt; How do I do that?<br><br><br>-- <br>Adrian Klaver<br>adrian(dot)klaver(at)aklaver(dot)com<br><br><br>-- <br>Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)<br>To make changes to your subscription:<br><a href="http://www.postgresql.org/mailpref/pgsql-general">http://www.postgresql.org/mailpref/pgsql-general</a><br><br><br></blockquote></blockquote><br></div>

Attachment Content-Type Size
unknown_filename text/html 2.7 KB

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Joseph Krogh 2017-05-10 15:00:16 Re: Upgrading postgresql minor version
Previous Message Adrian Klaver 2017-05-10 14:37:53 Re: Python versus Other Languages using PostgreSQL