summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/network.c
Commit message (Collapse)AuthorAgeFilesLines
* Convert inet-related functions to new fmgr style. I have also taken itTom Lane2000-08-031-144/+128
| | | | | | | | 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.
* Functions on 'text' type updated to new fmgr style. 'text' isTom Lane2000-07-061-63/+58
| | | | now TOAST-able.
* TOASTJan Wieck2000-07-031-6/+6
| | | | | | | | WARNING: This is actually broken - we have self-deadlocks due to concurrent changes in buffer management. Vadim and me are working on it. Jan
* Ye-old pgindent run. Same 4-space tabs.Bruce Momjian2000-04-121-3/+3
|
* Reversed out inet patch.Bruce Momjian2000-03-081-14/+11
|
* Sorting for the inet data type randomly returns the wrong resultBruce Momjian2000-03-071-11/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | when you have networks with the same prefix, but different netmasks. This is due to the fact that occassionally there is random (uninitialized?) data in the extra bits past the point where the netmask cares about them. ie (real data from a real live database): 10.0/10 == 00001010.00100000.00100000.00011000 10.0/11 == 00001010.00000000.00000000.00000000 ^ Bad data, normally never seen The v4bitncmp() function was only taking one bit length argument so it would determine that the networks were different, even though they really aren't (and the netmask test wouldn't be used). This ONLY happens if the tuple with the longer bit length is used as the ip_bits() for the v4bitncmp call AND there happens to be junk data in place in the shorter tuple. Odd and random, but I saw it happen a couple times so... Ryan Mooney
* Oops, commited a test version of this file by accident. Revert.Tom Lane2000-02-211-45/+70
|
* Change parse-time representation of float literals (which include oversizeTom Lane2000-02-211-70/+45
| | | | | | | | integers) to be strings instead of 'double'. We convert from string form to internal representation only after type resolution has determined the correct type for the constant. This eliminates loss-of-precision worries and gets rid of the change in behavior seen at 17 digits with the previous kluge.
* Fix for netmask('x.x.x.x/0') is 255.255.255.255 instead of 0.0.0.0Bruce Momjian1999-09-231-2/+3
| | | | | | This is because (-1) << 32 is -1 (Only intel arc. has been checked) Oleg Sharoiko
* Move some system includes into c.h, and remove duplicates.Bruce Momjian1999-07-171-3/+1
|
* Change #include's to use <> and "" as appropriate.Bruce Momjian1999-07-151-3/+3
|
* Remove unused #includes in *.c files.Bruce Momjian1999-07-151-2/+1
|
* Clean up #include in /include directory. Add scripts for checking includes.Bruce Momjian1999-07-151-3/+1
|
* Cleanup of /include #include's, for 6.6 only.Bruce Momjian1999-07-141-1/+2
|
* The INET and CIDR types mistakenly compared 198.68.123.0/24 andBruce Momjian1999-06-021-2/+10
| | | | | | 198.68.123.0/27 the same when indexing them. D'Arcy
* pgindent run over code.Bruce Momjian1999-05-251-10/+10
|
* Fix boolean assignment of return values to use "FALSE" rather than theThomas G. Lockhart1999-04-151-5/+5
| | | | | mis-copied "NULL", which happens to have the same binary value. Previously, gcc gave non-fatal warnings.
* Cleanup of NULL in inet types.Bruce Momjian1999-03-221-63/+65
|
* Thank you for the advice. I concluded that current inet code has aBruce Momjian1999-02-241-2/+7
| | | | | | | | portability problem. Included patches should be applied to both current and 6.4 tree. I have tested on LinuxPPC, FreeBSD and Solaris 2.6. Now the inet regression tests on these platforms are all happy. --- Tatsuo Ishii
* Fix for no platform NAN.Bruce Momjian1999-01-011-3/+2
|
* Re-fix test for negative-integer return code that should beTom Lane1998-10-291-2/+2
| | | | testing for null-pointer return code...
* D'Arcy INET fix.Bruce Momjian1998-10-291-6/+4
|
* Fix some actual bugs exposed by compiler warnings.Tom Lane1998-10-261-5/+5
| | | | | | (Someone forgot whether their subroutine signaled errors by a NULL pointer return value, or a negative integer... I'm surprised gcc -Wall doesn't catch this...)
* INET/CIDR cleanup from D'Arcy.Bruce Momjian1998-10-221-0/+484