Re: "anyelement2" pseudotype

Поиск
Список
Период
Сортировка
От Tom Dunstan
Тема Re: "anyelement2" pseudotype
Дата
Msg-id 45D3A4E9.9010206@tomd.cc
обсуждение исходный текст
Ответ на Re: "anyelement2" pseudotype  (Tom Dunstan <pgsql@tomd.cc>)
Список pgsql-hackers
Tom Dunstan wrote:
> Tom Lane wrote:
>> As for actually adding it, grep for all references to ANYELEMENT and add
>> code accordingly; shouldn't be that hard.  Note you'd need to add an
>> anyarray2 at the same time for things to keep working sanely.
> 
> The enum patch [1] does exactly this with an ANYENUM pseudo-type. It 
> should provide a pretty good overview of what will be required.

Whoops. I just had a look at the mail that Matt referenced at the top of 
this thread. An anyelement2 would require a bit more than what anyenum 
does, as the type-matching code that ensures that all generic args are 
of the same type would have to be changed, unlike anyenum. Hope I didn't 
lead you down the wrong path, Matt. OTOH, following the enum patch 
should land you in roughly the right areas, and you'd still need to add 
ANYELEMENT2 references in all the places that I had to add ANYENUM as well.

Cheers

Tom







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

Предыдущее
От: oliver rombaoa
Дата:
Сообщение: automatic password for pg_dump to be used for a batch file in vb6
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: automatic password for pg_dump to be used for a batch file in vb6