Re: Move datapath

Поиск
Список
Период
Сортировка
От Ron Johnson
Тема Re: Move datapath
Дата
Msg-id CANzqJaA=TjQLmz=5efmOOhjmVKP_Ld-L+DRAeG0NkKUGht44PA@mail.gmail.com
обсуждение исходный текст
Ответ на Move datapath  (Rajesh Kumar <rajeshkumar.dba09@gmail.com>)
Список pgsql-admin
On Wed, Jan 15, 2025 at 2:25 PM Rajesh Kumar <rajeshkumar.dba09@gmail.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!

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