Re: pgsql: Oops, don't forget to rewind the directory before scanning it to

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Oops, don't forget to rewind the directory before scanning it to
Дата
Msg-id 3507.1266805858@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgsql: Oops, don't forget to rewind the directory before scanning it to  (stark@postgresql.org (Greg Stark))
Список pgsql-committers
stark@postgresql.org (Greg Stark) writes:
> Oops, don't forget to rewind the directory before scanning it to fsync files in CREATE DATABASE

This is certainly not right:

+     AllocateDir(fromdir);
      if (xldir == NULL)
          ereport(ERROR,

There's no guarantee AllocateDir will hand back the same pointer as
it did the previous time.

            regards, tom lane

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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: pgsql: Speed up CREATE DATABASE by deferring the fsyncs until after
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: pgsql: Oops, don't forget to rewind the directory before scanning it to