Re: [PATCH 4/5] Add pg_xlogdump contrib module

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [PATCH 4/5] Add pg_xlogdump contrib module
Дата
Msg-id 20130204162226.GF4963@alvh.no-ip.org
обсуждение исходный текст
Ответ на [PATCH 4/5] Add pg_xlogdump contrib module  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: [PATCH 4/5] Add pg_xlogdump contrib module  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
I didn't like this bit too much:

> diff --git a/contrib/pg_xlogdump/tables.c b/contrib/pg_xlogdump/tables.c
> new file mode 100644
> index 0000000..e947e0d
> --- /dev/null
> +++ b/contrib/pg_xlogdump/tables.c
> @@ -0,0 +1,78 @@

> +/*
> + * RmgrTable linked only to functions available outside of the backend.
> + *
> + * needs to be synced with src/backend/access/transam/rmgr.c
> + */
> +const RmgrData RmgrTable[RM_MAX_ID + 1] = {
> +    {"XLOG", NULL, xlog_desc, NULL, NULL, NULL},
> +    {"Transaction", NULL, xact_desc, NULL, NULL, NULL},

So I propose the following patch instead.  This lets pg_xlogdump compile
only the file it needs, and not concern itself with the rest of rmgr.c.

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

Вложения

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

Предыдущее
От: Benedikt Grundmann
Дата:
Сообщение: Re: json api WIP patch
Следующее
От: Andres Freund
Дата:
Сообщение: Re: [PATCH 4/5] Add pg_xlogdump contrib module