postgresql/src/backend
Bruce Momjian 945543d919 Add ipv6 address parsing support to 'inet' and 'cidr' data types.
Regression tests for IPv6 operations added.

        Documentation updated to document IPv6 bits.

        Stop treating IPv4 as an "unsigned int" and IPv6 as an array of
        characters.  Instead, always use the array of characters so we
        can have one function fits all.  This makes bitncmp(), addressOK(),
        and several other functions "just work" on both address families.

        add family() function which returns integer 4 or 6 for IPv4 or
        IPv6.  (See examples below)  Note that to add this new function
        you will need to dump/initdb/reload or find the correct magic
        to add the function to the postgresql function catalogs.

        IPv4 addresses always sort before IPv6.

        On disk we use AF_INET for IPv4, and AF_INET+1 for IPv6 addresses.
        This prevents the need for a dump and reload, but lets IPv6 parsing
        work on machines without AF_INET6.

        To select all IPv4 addresses from a table:

                select * from foo where family(addr) = 4 ...

        Order by and other bits should all work.

Michael Graff
2003-06-24 22:21:24 +00:00
..
access Revise hash join and hash aggregation code to use the same datatype- 2003-06-22 22:04:55 +00:00
bootstrap Ensure that in all flex lexers that are part of the backend, a 2003-05-29 22:30:02 +00:00
catalog More information schema views. 2003-06-17 18:00:48 +00:00
commands Brief note about sequence cache not being cleared in other backends. 2003-06-12 07:49:43 +00:00
executor Revise hash join and hash aggregation code to use the same datatype- 2003-06-22 22:04:55 +00:00
lib Infrastructure for upgraded error reporting mechanism. elog.c is 2003-04-24 21:16:45 +00:00
libpq index() -> strchr(). 2003-06-15 16:21:39 +00:00
main Allow Win32 to compile under MinGW. Major changes are: 2003-05-15 16:35:30 +00:00
nodes Adjust nestloop-with-inner-indexscan plan generation so that we catch 2003-06-15 22:51:45 +00:00
optimizer Allow GROUP BY, ORDER BY, DISTINCT targets to be unknown literals, 2003-06-16 02:03:38 +00:00
parser Disallow dollar sign in operator names, instead allow it as a non-first 2003-06-19 23:22:40 +00:00
po Most of the code follows the American spelling of the word, which is 2002-11-19 17:21:40 +00:00
port Allow Win32 to compile under MinGW. Major changes are: 2003-05-15 16:35:30 +00:00
postmaster IPv6 cleanups. 2003-06-12 07:36:51 +00:00
regex Replace regular expression package with Henry Spencer's latest version 2003-02-05 17:41:33 +00:00
rewrite Implement outer-level aggregates to conform to the SQL spec, with 2003-06-06 15:04:03 +00:00
storage Up to now, SerializableSnapshot and QuerySnapshot are malloc'ed and 2003-06-12 01:42:21 +00:00
tcop Fix for extended-query protocol: in event of error, backend was issuing 2003-06-20 21:58:02 +00:00
utils Add ipv6 address parsing support to 'inet' and 'cidr' data types. 2003-06-24 22:21:24 +00:00
Makefile Make "win" a separate port from "cygwin". This means you can now 2003-03-21 17:18:34 +00:00
nls.mk Translation updates 2002-09-14 13:46:24 +00:00