Re: Cloning PostgreSQL 8.3.7

Поиск
Список
Период
Сортировка
От Tomas Ramanauskas
Тема Re: Cloning PostgreSQL 8.3.7
Дата
Msg-id 942E714F114739429A83333F735F7A85195CE0A0@senldogo0752.springer-sbm.com
обсуждение исходный текст
Ответ на Re: Cloning PostgreSQL 8.3.7  (Jerry Sievers <gsievers19@comcast.net>)
Список pgsql-admin
Hi, Jerry,

Thanks for the answer.

I read this document before posting the question:
http://www.postgresql.org/docs/8.3/static/continuous-archiving.html

I already have WAL archiving set up which archives WAL files to remote location:
archive_mode = on
archive_command = '/my_script.sh %p %f'


The only thing I didn't do - was creating recovery.conf file.

It's not clear if this file is mandatory or optional if I don't need "restore_command" to do any WAL copy for me (I
alreadycopied all archived WAL files to pg_xlog manually). 
And I'm interested to do the point in time recovery to the end of the WAL log which is the default value for
recovery_target_time.


And everything worked fine for me, there were just no messages written in the log file (pg_log) indicating that WAL
applywas actually performed. 




Tomas


-----Original Message-----
From: Jerry Sievers [mailto:gsievers19@comcast.net]
Sent: 16 July 2014 22:07
To: Tomas Ramanauskas
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Cloning PostgreSQL 8.3.7

Tomas Ramanauskas <Tomas.Ramanauskas@springer.com> writes:

> Hi, guys,
>
> Im new to PostgreSQL and Im currently involved in cloning PostgreSQL 8.3.7 to a different server (as a first step of
migrationto 9.3 version project). 
>
> Im able to clone the db server and everything is working, but Im not entirely sure how manual application of WAL
filesworks /  is triggered. 
>
> After DB is cloned, I want to apply all the changes since the database was cloned.
>
> I want to do it as a one-off operation, I dont want to create warm standby. I also want to verify and make sure that
allWAL files got applied. 

You are describing a hot-backup and point in time recovery  which is
well documented in   the standard Pg doc set.

You will replay all available WALs and your clone will come online at that point.

<>
> Im not sure if PG applies all the WAL files it finds in pg_xlog or I need to run a specific command to do that?
>
> I just copied all the WAL files to pg_xlog and started PG, but there is nothing in the log files indicating that WAL
filesactually got applied. 
>
> I also posted same question also here:
>
> https://stackoverflow.com/questions/24784042/cloning-postgresql-8-3-7
>
> Kind regards,
>
> Tomas
>

--
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres.consulting@comcast.net
p: 312.241.7800


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

Предыдущее
От: mitalpritmani
Дата:
Сообщение: Re: Server 9.1 doesn't restart and no output/log - data files seem corrupted
Следующее
От: "Joseph Mays"
Дата:
Сообщение: Pgpool-II, pgcluster, or pgbouncer?