Re: 9.5 beta pg_upgrade documentation

From: Andy Colson <andy(at)squeakycode(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: 9.5 beta pg_upgrade documentation
Date: 2015-09-02 02:12:27
Message-ID: 55E65B0B.8070308@squeakycode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 09/01/2015 08:46 PM, Andy Colson wrote:
> On 09/01/2015 07:00 PM, Bruce Momjian wrote:
>> On Tue, Sep 1, 2015 at 06:56:11PM -0500, Andy Colson wrote:
>>>> I also added a mention that rsync, not pg_upgrade, will be run on the
>>>> standbys. You can see all the results of the patch here:
>>>>
>>>> http://momjian.us/pgsql_docs/pgupgrade.html
>>>>
>>>> Thanks.
>>>>
>>>
>>> Sweet, I'm glad I stopped where I did. I think I'm safe to pick up at step f. Which seemed to work ok. But now we get to step g (run rsync). I checked the rsync manual and don't see anything like this three directory argument thing you are trying to run. Unless you want to use --link-dest. In which case I think the cmd would be like:
>>>
>>> rsync --archive --delete --hard-links --size-only --link-dest=old_pgdata new_pgdata remote_dir
>>>
>>> I'm gonna try this now, will report back.
>>
>> No, you are copying "old_pgdata and new_pgdata" to remote_dir.
>>
>
> Ohhh... I'll try again. (The method above (run from the standby) doesn't work well at all).
>
> -Andy
>
>

Yeah, much better:

postgres(at)test1:/pub$ rsync --archive --stats --delete --hard-links --size-only pg93 pg95 test2:/pub/

Number of files: 373,393 (reg: 373,340, dir: 53)
Number of created files: 186,779 (reg: 186,751, dir: 28)
Number of deleted files: 1 (reg: 1)
Number of regular files transferred: 1,480
Total file size: 201,329,799,433 bytes
Total transferred file size: 1,445,463,198 bytes
Literal data: 1,445,463,198 bytes
Matched data: 0 bytes
File list size: 7,208,811
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 1,458,717,642
Total bytes received: 5,629,388

sent 1,458,717,642 bytes received 5,629,388 bytes 8,956,250.95 bytes/sec
total size is 201,329,799,433 speedup is 137.49

test1 is the primary, and test2 the standby. Both have /pub/pg93 and /pub/pg95
I copied over a recovery.conf and the standby started up.
I started pg95 on the primary and am running analyze now. I'll copy over wal to the standby and continue testing.

Looks good so far!

Thanks,

-Andy

In response to

Browse pgsql-general by date

  From Date Subject
Next Message FarjadFarid(ChkNet) 2015-09-02 08:42:27 Re: Detecting autoincrement columns
Previous Message Andy Colson 2015-09-02 01:46:20 Re: 9.5 beta pg_upgrade documentation