Hashable custom types

Поиск
Список
Период
Сортировка
От Paul Ramsey
Тема Hashable custom types
Дата
Msg-id CACowWR2zE=-awXtyZrjJDYRcfPZtN9gr7kkPPqVsXH_HT2tOkw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Hashable custom types  (Peter Geoghegan <pg@heroku.com>)
Re: Hashable custom types  (David Fetter <david@fetter.org>)
Список pgsql-hackers
When trying to write a recursive CTE using the PostGIS geometry type,
I was told this:

ERROR:  could not implement recursive UNION
DETAIL:  All column datatypes must be hashable.

Is it possible to make custom types hashable? There's no hook in the
CREATE TYPE call for a hash function, but can one be hooked up
somewhere else? In an operator?

Thanks,

P

-- 
Paul Ramsey
http://cleverelephant.ca
http://postgis.net



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Decrease MAX_BACKENDS to 2^16
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Hashable custom types