Re: [BUGS] Bug in create operator and/or initdb

Поиск
Список
Период
Сортировка
От John Hansen
Тема Re: [BUGS] Bug in create operator and/or initdb
Дата
Msg-id 5066E5A966339E42AA04BA10BA706AE56241@rodrick.geeknet.com.au
обсуждение исходный текст
Ответы Re: [BUGS] Bug in create operator and/or initdb  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> My opinion is that this is a very bogus shortcut in the
> network datatype code.  There are no cases outside the
> inet/cidr group where an operator doesn't exactly match its
> underlying function.  (The whole business of inet and cidr
> being almost but not quite the same type is maldesigned
> anyway...)
>
> The right solution for you is to declare two SQL functions.
> Whether you make them point at the same underlying C code is
> up to you.

Right,...

In that case may I suggest fixing the catalog so network_* functions exists for both datatypes!
Anything less I'd consider inconsistent...

Kind regards,

John


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] Bug in create operator and/or initdb
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] Bug in create operator and/or initdb