Re: pg_dump refactor patch to remove global variables

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: pg_dump refactor patch to remove global variables
Дата
Msg-id 20141008030539.GR7043@eldon.alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: pg_dump refactor patch to remove global variables  (Joachim Wieland <joe@mcknight.de>)
Список pgsql-hackers
Here's a rebased patch for this (I also pgindented it).

One thing I find a bit odd is the fact that we copy
RestoreOptions->superuser into DumpOptions->outputSuperuser (a char *
pointer) without pstrdup or similar.  We're already doing the inverse
elsewhere, and the uses of the routine where this is done are pretty
limited, so it seems harmless.  Still, it's pretty weird.  (Really,
the whole dumpOptionsFromRestoreOptions() business is odd.)

I'm not real happy with the forward struct declare in pg_backup.h, but I
think this is just general messiness in this code structure and not this
patch' fault.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Вложения

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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: PL/pgSQL 2
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: pgaudit - an auditing extension for PostgreSQL