Re: Array detection in pg_dump

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Array detection in pg_dump
Дата
Msg-id 200908062319.n76NJgP28452@momjian.us
обсуждение исходный текст
Ответ на Re: Array detection in pg_dump  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > Is there a reason we don't use pg_type.typcategory to detect arrays in
> > Postgres 8.4?  Right now I see this in pg_dump.c:
> 
> typcategory is user-assignable and thus not too reliable; furthermore
> it wouldn't prove that the type is the array type for its typelem.
> (Consider things like point and name --- there can be multiple types
> with the same typelem, but only one is the real array type for that
> typelem.)  The typelem back-link check is much safer.

Thanks;  I will use the pg_dump code in pg_migrator then.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Array detection in pg_dump
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Array detection in pg_dump