Re: New option for pg_basebackup, to specify a different directory for pg_xlog
От | Haribabu kommi |
---|---|
Тема | Re: New option for pg_basebackup, to specify a different directory for pg_xlog |
Дата | |
Msg-id | 8977CB36860C5843884E0A18D8747B0372BEF110@szxeml558-mbs.china.huawei.com обсуждение исходный текст |
Ответ на | Re: New option for pg_basebackup, to specify a different directory for pg_xlog (Gavin Flower <GavinFlower@archidevsys.co.nz>) |
Список | pgsql-hackers |
<div class="WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext">on</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">20November 2013 23:44 Gavin Flower wrote:</span><pclass="MsoNormal">>On 20/11/13 23:43, Haribabu kommi wrote:<pre>>>I tried using of stat'ing in twodirectories, which is having a problem in windows.</pre> <pre>>>So modified old approach to detect limited errors.Updated patch attached. </pre> <pre>>>This will detect and throw an error in the following scenarios.</pre><pre>>>1. pg_basebackup -D /home/data --xlogdir=/home/data</pre> <pre>>>2. pg_basebackup -D data--xlogdir=/home/data -- home is the CWD</pre> <pre>>>3. pg_basebackup -D ../data --xlogdir=/data -- home is theCWD</pre> <pre> </pre><p class="MsoNormal">>I don't think Postgres on other systems should be hobbled by the limitationsof Microsoft software!<br /> >If certain features of Postgres are either not available, or are available ina reduced form on Microsoft platforms, then this should be documented - might provide subtle hints to upgrade to Linux.<pclass="MsoNormal"> <p class="MsoNormal">The patch which sent in earlier mail provides the detection of base and xlogdirectories are same or not<p class="MsoNormal">In both windows and linux with a different way of identifying the samewithout stat’ing.<p class="MsoNormal">If other also agrees to add stat’ing then I will change the patch accordingly anddocument the behavior <p class="MsoNormal">Change for windows.<p class="MsoNormal"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"CourierNew""> </span><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"CourierNew"">Regards,</span><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"CourierNew"">Hari babu.</span><p class="MsoNormal"><span style="color:#1F497D"> </span></div>
В списке pgsql-hackers по дате отправления: