Re: pg_dump UDT/function dependency patch

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_dump UDT/function dependency patch
Дата
Msg-id 28364.986088176@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_dump UDT/function dependency patch  (Philip Warner <pjw@rhyme.com.au>)
Ответы Re: pg_dump UDT/function dependency patch  (Philip Warner <pjw@rhyme.com.au>)
Список pgsql-patches
Philip Warner <pjw@rhyme.com.au> writes:
> Patch to put rudimentary dependency support into pg_dump. This addresses
> the UDT/function order problem. Unfortunately, this is not a small patch so
> I would prefer some debate about whether it should be applied 7.1.

Looks good to me.  A large part of the bulk appears to be changes to
not treat OIDs as integers, which is a necessary bug fix anyway.

One small stylistic quibble:

+#define oidcmp(x,y) ( (x < y ? -1 : (x > y) ?  1 : 0))
+#define oideq(x,y) (x == y)

These need more parentheses to be safe:

+#define oidcmp(x,y) ( ((x) < (y) ? -1 : ((x) > (y)) ?  1 : 0))
+#define oideq(x,y) ((x) == (y))

            regards, tom lane

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

Предыдущее
От: Philip Warner
Дата:
Сообщение: pg_dump UDT/function dependency patch
Следующее
От: Fred Yankowski
Дата:
Сообщение: patch for minor Win32 makefile bug