initdb.c::main() too large

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема initdb.c::main() too large
Дата
Msg-id 20121130041223.GJ9501@momjian.us
обсуждение исходный текст
Ответы Re: initdb.c::main() too large
Re: initdb.c::main() too large
Список pgsql-hackers
In looking to add an fsync-only option to initdb, I found its main()
function to be 743 lines long, and very hard to understand.

The attached patch moves much of that code into separate functions,
which will make initdb.c easier to understand, and easier to add an
fsync-only option.  The original initdb.c author, Andrew Dunstan, has
accepted the restructuring, in principle.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +

Вложения

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

Предыдущее
От: Pavan Deolasee
Дата:
Сообщение: Re: missing LockBuffer(buffer, BUFFER_LOCK_SHARE) in trigger.c GetTupleForTrigger?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: initdb.c::main() too large