Skip to content
Snippets Groups Projects
  1. Sep 20, 2010
  2. Jan 02, 2010
  3. Jan 01, 2009
  4. Feb 23, 2008
    • Tom Lane's avatar
      Change the declaration of struct varlena so that the length word is · 9713c063
      Tom Lane authored
      represented as "char ...[4]" not "int32".  Since the length word is never
      supposed to be accessed via this struct member anyway, this won't break
      any existing code that is following the rules.  The advantage is that C
      compilers will no longer assume that a pointer to struct varlena is
      word-aligned, which prevents incorrect optimizations in TOAST-pointer
      access and perhaps other places.  gcc doesn't seem to do this (at least
      not at -O2), but the problem is demonstrable on some other compilers.
      
      I changed struct inet as well, but didn't bother to touch a lot of other
      struct definitions in which it wouldn't make any difference because there
      were other fields forcing int alignment anyway.  Hopefully none of those
      struct definitions are used for accessing unaligned Datums.
      9713c063
  5. Jan 01, 2008
  6. Nov 15, 2007
  7. Apr 06, 2007
    • Tom Lane's avatar
      Support varlena fields with single-byte headers and unaligned storage. · 3e23b68d
      Tom Lane authored
      This commit breaks any code that assumes that the mere act of forming a tuple
      (without writing it to disk) does not "toast" any fields.  While all available
      regression tests pass, I'm not totally sure that we've fixed every nook and
      cranny, especially in contrib.
      
      Greg Stark with some help from Tom Lane
      3e23b68d
  8. Jan 05, 2007
  9. Jul 11, 2006
  10. Mar 05, 2006
  11. Jan 26, 2006
    • Tom Lane's avatar
      Clean up the INET-vs-CIDR situation. Get rid of the internal is_cidr flag · 8d8bf127
      Tom Lane authored
      and rely exclusively on the SQL type system to tell the difference between
      the types.  Prevent creation of invalid CIDR values via casting from INET
      or set_masklen() --- both of these operations now silently zero any bits
      to the right of the netmask.  Remove duplicate CIDR comparison operators,
      letting the type rely on the INET operators instead.
      8d8bf127
  12. Jan 23, 2006
  13. Dec 31, 2004
    • PostgreSQL Daemon's avatar
      · 2ff50159
      PostgreSQL Daemon authored
      Tag appropriate files for rc3
      
      Also performed an initial run through of upgrading our Copyright date to
      extend to 2005 ... first run here was very simple ... change everything
      where: grep 1996-2004 && the word 'Copyright' ... scanned through the
      generated list with 'less' first, and after, to make sure that I only
      picked up the right entries ...
      2ff50159
  14. Aug 29, 2004
  15. Jun 13, 2004
  16. Nov 29, 2003
    • PostgreSQL Daemon's avatar
      · 55b11325
      PostgreSQL Daemon authored
      make sure the $Id tags are converted to $PostgreSQL as well ...
      55b11325
  17. Aug 04, 2003
  18. Jun 25, 2003
    • Bruce Momjian's avatar
      Add ipv6 address parsing support to 'inet' and 'cidr' data types. · 945543d9
      Bruce Momjian authored
              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
      945543d9
  19. Jun 20, 2002
  20. Nov 05, 2001
  21. Oct 25, 2001
  22. Mar 22, 2001
  23. Jan 24, 2001
  24. Aug 04, 2000
    • Tom Lane's avatar
      Convert inet-related functions to new fmgr style. I have also taken it · ed9ca687
      Tom Lane authored
      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.
      ed9ca687
  25. Jul 06, 2000
  26. Jan 26, 2000
    • Bruce Momjian's avatar
      Add: · 5c25d602
      Bruce Momjian authored
        * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
      
      to all files copyright Regents of Berkeley.  Man, that's a lot of files.
      5c25d602
  27. May 26, 1999
  28. May 25, 1999
  29. Feb 14, 1999
  30. Oct 21, 1998
  31. Oct 08, 1998
  32. Oct 04, 1998
  33. Oct 03, 1998
Loading