Re: Fixing pg_basebackup with tablespaces found in $PGDATA
От
Dimitri Fontaine
Тема
Re: Fixing pg_basebackup with tablespaces found in $PGDATA
Дата
Msg-id
m2sit6ild3.fsf@2ndQuadrant.fr
Ответ на
Re: Fixing pg_basebackup with tablespaces found in $PGDATA (Magnus Hagander)
Список
Дерево обсуждения
Fixing pg_basebackup with tablespaces found in $PGDATA Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Re: Fixing pg_basebackup with tablespaces found in
$PGDATA Bernd Helmle <mailings@oopsware.de>
Re: Fixing pg_basebackup with tablespaces found in
$PGDATA Bruce Momjian <bruce@momjian.us>
Re: Fixing pg_basebackup with tablespaces found in $PGDATA Michael Paquier <michael.paquier@gmail.com>
Re: Fixing pg_basebackup with tablespaces found in $PGDATA Craig Ringer <craig@2ndquadrant.com>
Re: Fixing pg_basebackup with tablespaces found in $PGDATA Magnus Hagander <magnus@hagander.net>
Re: Fixing pg_basebackup with tablespaces found in $PGDATA Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Re: Fixing pg_basebackup with tablespaces found in $PGDATA Magnus Hagander <magnus@hagander.net>
Re: Fixing pg_basebackup with tablespaces found in $PGDATA Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Magnus Hagander writes: > We can't get away with just comparing the relative part of the pathname. > Because it will fail if there is another path with exactly the same length, > containing the tablespace. Actually… yeah. > I think we might want to store a value in the tablespaceinfo struct > indicating whether it's actually inside PGDATA (since we have the full path > at that point), and then skip it based on that instead. Or store and pass > the value of getcwd() perhaps. I think it's best to stuff in the tablespaceinfo struct either NIL or the relative path of the tablespace when found in $PGDATA, as done in the attached. > I've attached a slightly updated patch - I changed around a bit of logic > order and updated some comments during my review. And added error-checking. Thanks! I started again from your version for v3. Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support
В списке pgsql-hackers по дате отправления
От: Nicolas Barbier
Дата: