pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Teja Jakkidi <teja.jakkidi05@gmail.com>
To: Bruce Momjian <bruce@momjian.us>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: Postgres open source upgrades
Date: Tue, 28 Jun 2022 13:14:08 -0700
Message-ID: <AAE7AA79-1C07-4365-BC0B-4282A518E6FB@gmail.com> (raw)
In-Reply-To: <YrtgFX7Zu04ctk3e@momjian.us>
References: <YrtgFX7Zu04ctk3e@momjian.us>

Thank you very much, Momjian.

I also tried to test a minor upgrade with online documentation I found. I implemented the below steps for upgrading from 14.1 to 14.2 and this is open source.
Before upgrade binary location is /postgres/14
1. Stop the cluster
2. Rename old binary location to /postgres/14.old
3. Create new binary location /postgres/14.2
4. Untar the software, 
    Configure in the new directory 14.2 with new unrated software
    Make world
    Make install-world
5. Rename /postgres/14.2 to /postgres/14
6. Start the cluster
Cluster started and I was able to connect remotely with no issues. However when I tried using psql, I got below error:
        Connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed.
But my postgres has been using socket file in /tmp location before upgrade. I am not sure why after upgrade psql is searching at a different allocation for socket. 
Can someone help me here? 
Are the steps that I did, correct??

Thanks and Regards,
J. Teja Sri.

> On Jun 28, 2022, at 1:09 PM, Bruce Momjian <bruce@momjian.us> wrote:
> 
> On Tue, Jun 28, 2022 at 12:13:11PM -0700, Teja Jakkidi wrote:
>> Hello pgsql-admin,
>> 
>> I am very new to Postgres and trying to learn how upgrades work in Postgres. 
>> We have open source installation and I am wondering if anyone can help me with correct documentation or steps on performing minor and major version upgrades.
> 
> Please look here:
> 
>    https://www.postgresql.org/support/versioning/
> 
> There are links to the documentation there.
> 
> -- 
>  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
>  EDB                                      https://enterprisedb.com
> 
>  Indecision is a decision.  Inaction is an action.  Mark Batterson
> 





view thread (9+ messages)  latest in thread

Message-ID: <AAE7AA79-1C07-4365-BC0B-4282A518E6FB@gmail.com>
Permalink:  ../AAE7AA79-1C07-4365-BC0B-4282A518E6FB@gmail.com/
Also on:    postgresql.org/message-id/AAE7AA79-1C07-4365-BC0B-4282A518E6FB@gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: teja.jakkidi05@gmail.com, bruce@momjian.us, pgsql-admin@lists.postgresql.org
  Subject: Re: Postgres open source upgrades
  In-Reply-To: <AAE7AA79-1C07-4365-BC0B-4282A518E6FB@gmail.com>

* 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