Re: [BUGS] Bug in create operator and/or initdb - Mailing list pgsql-hackers

From John Hansen
Subject Re: [BUGS] Bug in create operator and/or initdb
Date
Msg-id 5066E5A966339E42AA04BA10BA706AE56241@rodrick.geeknet.com.au
Whole thread Raw
Responses Re: [BUGS] Bug in create operator and/or initdb  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUGS] Bug in create operator and/or initdb
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] Bug in create operator and/or initdb