[Pgcluster-general] Cybercluster-1.0.0 recovery bug

Rick Vernam rickv at hobi.com
Wed Jan 16 06:00:12 UTC 2008


I wrote a patch for pgcluster (which cybercluster is based on) that were not 
applied correctly to cybercluster.

in src/backend/libpq/recovery.c
all occurrences of restore_dir(...) should be conditional upon
if (PGR_Recovery_Mode != PGR_WITHOUT_BACKUP)

so, instead of 
restore_dir(...)

it should be
if (PGR_Recovery_Mode != PGR_WITHOUT_BACKUP)
	restore_dir(...)

This is a serious bug that occurs when a node starts recovery with -u (rsync 
recovery without backup), and results in a lost base directory.

see attached patch for fix.

-Rick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cybercluster-1.0.0-PGR_WITHOUT_BACKUP.patch
Type: text/x-diff
Size: 1565 bytes
Desc: not available
Url : http://pgfoundry.org/pipermail/pgcluster-general/attachments/20080116/e9a3a52b/attachment.bin 


More information about the Pgcluster-general mailing list