Re: Move datapath

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Move datapath
Date: 2025-01-15 19:33:20
Message-ID: CANzqJaA=TjQLmz=5efmOOhjmVKP_Ld-L+DRAeG0NkKUGht44PA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, Jan 15, 2025 at 2:25 PM Rajesh Kumar <rajeshkumar(dot)dba09(at)gmail(dot)com>
wrote:

> Hi all,
>
> I have a postgres database 15.3 that ran on kubernetes and the pod had
> crashbackloop error.
>
> And devops looks like created another datapath and now pod is running.
>
> Now when connect to terminal of that pod I could see two folders 1.
> Postgresql-24 (old data path that has data and looks like not running ) 2.
> Postgresql-25 (new data path which seems to be running currently)
>
> Now I want to have data in postgresql-25. How do I get it from
> postgresql-24? Kindly help me .
>

Postgresql only cares about the $PGDATA environment variable and the
datadir pointed to by "--pgdata=datadir". That's the answer to your
question.

--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Mohit Mishra 2025-01-15 19:34:03 Re: Move datapath
Previous Message Rajesh Kumar 2025-01-15 19:24:46 Move datapath