Convert inet-related functions to new fmgr style. I have also taken it
Tom Lane <tgl@sss.pgh.pa.us>
Convert inet-related functions to new fmgr style. I have also taken it on myself to do something about the non-self-consistency of the inet comparison functions. The results are probably still semantically wrong (inet and cidr should have different comparison semantics, I think) but at least the boolean operators now agree with each other and with the sort order of indexes on inet/cidr.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/mac.c | modified | +76 −70 |
| src/backend/utils/adt/network.c | modified | +128 −144 |
| src/include/catalog/pg_proc.h | modified | +26 −26 |
| src/include/utils/builtins.h | modified | +32 −34 |
| src/include/utils/inet.h | modified | +29 −6 |
| src/test/regress/expected/inet.out | modified | +1 −1 |