pg_dump && aggregate bug

Поиск
Список
Период
Сортировка
От Mathieu Arnold
Тема pg_dump && aggregate bug
Дата
Msg-id 2320161025.1021990435@andromede.reaumur.absolight.net
обсуждение исходный текст
Ответы Re: pg_dump && aggregate bug  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Hi

I have :

CREATE FUNCTION "first_cat" (text,text) RETURNS text AS 'SELECT CASE WHEN
$1 IS NULL THEN $2 ELSE $1 END' LANGUAGE 'sql';

and :

CREATE AGGREGATE first ( BASETYPE = text, SFUNC = first_cat, STYPE = text);

when I dump my database, in the dump file, the aggregate becomes :

CREATE AGGREGATE first ( BASETYPE = text, SFUNC = first_cat, STYPE = text,
INITCOND = '' );

which is *not* the same as you may imagine...

To dump my database, I use :
pg_dump -c

and I use :
PostgreSQL 7.2.1 on i386-portbld-freebsd4.5, compiled by GCC 2.95.3

I believe it lies around lines 3860 - 3864 of src/bin/pg_dump/pg_dump.c,
but I don't find what's wrong with it.

--
Mathieu Arnold

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

Предыдущее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #670: netmask displayed for a /32
Следующее
От: "Josh Berkus"
Дата:
Сообщение: Re: [SQL] Bug with Daylight Savings Time & Interval