Skip to content
Snippets Groups Projects
  1. Apr 29, 2012
  2. Jan 02, 2012
  3. Jan 01, 2011
  4. Sep 20, 2010
  5. Jan 02, 2010
  6. Dec 31, 2009
  7. Jan 01, 2009
  8. Apr 21, 2008
    • Tom Lane's avatar
      Allow float8, int8, and related datatypes to be passed by value on machines · 8472bf7a
      Tom Lane authored
      where Datum is 8 bytes wide.  Since this will break old-style C functions
      (those still using version 0 calling convention) that have arguments or
      results of these types, provide a configure option to disable it and retain
      the old pass-by-reference behavior.  Likewise, provide a configure option
      to disable the recently-committed float4 pass-by-value change.
      
      Zoltan Boszormenyi, plus configurability stuff by me.
      8472bf7a
  9. Apr 18, 2008
    • Alvaro Herrera's avatar
      Modify the float4 datatype to be pass-by-val. Along the way, remove the last · 7861d72e
      Alvaro Herrera authored
      uses of the long-deprecated float32 in contrib/seg; the definitions themselves
      are still there, but no longer used.  fmgr/README updated to match.
      
      I added a CREATE FUNCTION to account for existing seg_center() code in seg.c
      too, and some tests for it and the neighbor functions.  At the same time,
      remove checks for NULL which are not needed (because the functions are declared
      STRICT).
      
      I had to do some adjustments to contrib's btree_gist too.  The choices for
      representation there are not ideal for changing the underlying types :-(
      
      Original patch by Zoltan Boszormenyi, with some adjustments by me.
      7861d72e
  10. Mar 27, 2008
    • Tom Lane's avatar
      Reduce the need for frontend programs to include "postgres.h" by refactoring · 039dfbfd
      Tom Lane authored
      inclusions in src/include/catalog/*.h files.  The main idea here is to push
      function declarations for src/backend/catalog/*.c files into separate headers,
      rather than sticking them into the corresponding catalog definition file as
      has been done in the past.  This commit only carries out that idea fully for
      pg_proc, pg_type and pg_conversion, but that's enough for the moment ---
      if pg_list.h ever becomes unsafe for frontend code to include, we'll need
      to work a bit more.
      
      Zdenek Kotala
      039dfbfd
  11. Jan 01, 2008
  12. Nov 15, 2007
  13. Oct 01, 2007
    • Tom Lane's avatar
      Avoid assuming that struct varattrib_pointer doesn't get padded by the · b526462f
      Tom Lane authored
      compiler --- at least on ARM, it does.  I suspect that the varvarlena patch
      has been creating larger-than-intended toast pointers all along on ARM,
      but it wasn't exposed until the latest tweak added some Asserts that
      calculated the expected size in a different way.  We could probably have
      fixed this by adding __attribute__((packed)) as is done for ItemPointerData,
      but struct varattrib_pointer isn't really all that useful anyway, so it
      seems cleanest to just get rid of it and have only struct varattrib_1b_e.
      Per results from buildfarm member quagga.
      b526462f
  14. Sep 30, 2007
    • Tom Lane's avatar
      Add an extra header byte to TOAST-pointer datums to represent their size · 27b89222
      Tom Lane authored
      explicitly.  This means a TOAST pointer takes 18 bytes instead of 17 --- still
      smaller than in 8.2 --- which seems a good tradeoff to ensure we won't have
      painted ourselves into a corner if we want to support multiple types of TOAST
      pointer later on.  Per discussion with Greg Stark.
      27b89222
  15. Sep 27, 2007
  16. Jul 25, 2007
  17. May 15, 2007
  18. May 04, 2007
    • Tom Lane's avatar
      A few fixups in error handling: mark pg_re_throw() as noreturn for gcc, · 79ca7ffe
      Tom Lane authored
      and for other compilers, insert a dummy exit() call so that they understand
      PG_RE_THROW() doesn't return.  Insert fflush(stderr) in ExceptionalCondition,
      per recent buildfarm evidence that that might not happen automatically on some
      platforms.  And const-ify ExceptionalCondition's declaration while at it.
      79ca7ffe
  19. 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
  20. Mar 23, 2007
    • Tom Lane's avatar
      Adjust DatumGetBool macro so that it isn't fooled by garbage in the Datum · 23a41573
      Tom Lane authored
      to the left of the actual bool value.  While in most cases there won't be
      any, our support for old-style user-defined functions violates the C spec
      to the extent of calling functions that might return char or short through
      a function pointer declared to return "char *", which we then coerce to
      Datum.  It is not surprising that the result might contain garbage
      high-order bits ... what is surprising is that we didn't see such cases
      long ago.  Per report from Magnus.
      23a41573
  21. Feb 28, 2007
    • Tom Lane's avatar
      Replace direct assignments to VARATT_SIZEP(x) with SET_VARSIZE(x, len). · 234a02b2
      Tom Lane authored
      Get rid of VARATT_SIZE and VARATT_DATA, which were simply redundant with
      VARSIZE and VARDATA, and as a consequence almost no code was using the
      longer names.  Rename the length fields of struct varlena and various
      derived structures to catch anyplace that was accessing them directly;
      and clean up various places so caught.  In itself this patch doesn't
      change any behavior at all, but it is necessary infrastructure if we hope
      to play any games with the representation of varlena headers.
      Greg Stark and Tom Lane
      234a02b2
  22. Jan 05, 2007
  23. Jul 13, 2006
  24. Mar 05, 2006
  25. Feb 12, 2006
    • Bruce Momjian's avatar
      I've created a new shared catalog table pg_shdescription to store · f9a726aa
      Bruce Momjian authored
      comments on cluster global objects like databases, tablespaces, and
      roles.
      
      It touches a lot of places, but not much in the way of big changes.  The
      only design decision I made was to duplicate the query and manipulation
      functions rather than to try and have them handle both shared and local
      comments.  I believe this is simpler for the code and not an issue for
      callers because they know what type of object they are dealing with.
      This has resulted in a shobj_description function analagous to
      obj_description and backend functions [Create/Delete]SharedComments
      mirroring the existing [Create/Delete]Comments functions.
      
      pg_shdescription.h goes into src/include/catalog/
      
      Kris Jurka
      f9a726aa
  26. Jan 08, 2006
  27. Apr 14, 2005
    • Tom Lane's avatar
      First phase of project to use fixed OIDs for all system catalogs and · 7c13781e
      Tom Lane authored
      indexes.  Extend the macros in include/catalog/*.h to carry the info
      about hand-assigned OIDs, and adjust the genbki script and bootstrap
      code to make the relations actually get those OIDs.  Remove the small
      number of RelOid_pg_foo macros that we had in favor of a complete
      set named like the catname.h and indexing.h macros.  Next phase will
      get rid of internal use of names for looking up catalogs and indexes;
      but this completes the changes forcing an initdb, so it looks like a
      good place to commit.
      Along the way, I made the shared relations (pg_database etc) not be
      'bootstrap' relations any more, so as to reduce the number of hardwired
      entries and simplify changing those relations in future.  I'm not
      sure whether they ever really needed to be handled as bootstrap
      relations, but it seems to work fine to not do so now.
      7c13781e
  28. 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
  29. Aug 29, 2004
  30. Jan 16, 2004
  31. Jan 04, 2004
  32. Nov 29, 2003
    • PostgreSQL Daemon's avatar
      · 55b11325
      PostgreSQL Daemon authored
      make sure the $Id tags are converted to $PostgreSQL as well ...
      55b11325
  33. Aug 04, 2003
  34. Apr 07, 2003
  35. Oct 18, 2002
  36. Sep 04, 2002
  37. Aug 25, 2002
    • Tom Lane's avatar
      Clean up comments to be careful about the distinction between variable- · 58de4809
      Tom Lane authored
      width types and varlena types, since with the introduction of CSTRING as
      a more-or-less-real type, these concepts aren't identical.  I've tried to
      use varlena consistently to denote datatypes with typlen = -1, ie, they
      have a length word and are potentially TOASTable; while the term variable
      width covers both varlena and cstring (and, perhaps, someday other types
      with other rules for computing the actual width).  No code changes in this
      commit except for renaming a couple macros.
      58de4809
  38. Aug 10, 2002
    • Bruce Momjian's avatar
      This patch removes a lot of unused code related to assertions and · c5354dff
      Bruce Momjian authored
      error handling, and simplifies the code that remains. Apparently,
      the code that left Berkeley had a whole "error handling subsystem",
      which exceptions and whatnot. Since we don't use that anymore,
      there's no reason to keep it around.
      
      The regression tests pass with the patch applied. Unless anyone
      sees a problem, please apply.
      
      Neil Conway
      c5354dff
Loading