1. 07 Jul, 2013 3 commits
  2. 06 Jul, 2013 4 commits
    • Jeff Davis's avatar
      Handle posix_fallocate() errors. · 5b571bb8
      Jeff Davis authored
      On some platforms, posix_fallocate() is available but may still return
      EINVAL if the underlying filesystem does not support it.  So, in case
      of an error, fall through to the alternate implementation that just
      writes zeros.
      
      Per buildfarm failure and analysis by Tom Lane.
      5b571bb8
    • Michael Meskes's avatar
      43c3aab1
    • Tom Lane's avatar
      Rename a function to avoid naming conflict in parallel regression tests. · 0cd78780
      Tom Lane authored
      Commit 31a89185 added some tests in
      plpgsql.sql that used a function rather unthinkingly named "foo()".
      However, rangefuncs.sql has some much older tests that create a function
      of that name, and since these test scripts run in parallel, there is a
      chance of failures if the timing is just right.  Use another name to
      avoid that.  Per buildfarm (failure seen today on "hamerkop", but
      probably it's happened before and not been noticed).
      0cd78780
    • Peter Eisentraut's avatar
      PL/Python: Convert numeric to Decimal · 7919398b
      Peter Eisentraut authored
      The old implementation converted PostgreSQL numeric to Python float,
      which was always considered a shortcoming.  Now numeric is converted to
      the Python Decimal object.  Either the external cdecimal module or the
      standard library decimal module are supported.
      
      From: Szymon Guz <mabewlun@gmail.com>
      From: Ronan Dunklau <rdunklau@gmail.com>
      Reviewed-by: default avatarSteve Singer <steve@ssinger.info>
      7919398b
  3. 05 Jul, 2013 7 commits
  4. 04 Jul, 2013 7 commits
  5. 03 Jul, 2013 14 commits
  6. 02 Jul, 2013 5 commits
    • Robert Haas's avatar
      Add support for multiple kinds of external toast datums. · 36820250
      Robert Haas authored
      To that end, support tags rather than lengths for external datums.
      As an example of how this can be used, add support or "indirect"
      tuples which point to some externally allocated memory containing
      a toast tuple.  Similar infrastructure could be used for other
      purposes, including, perhaps, support for alternative compression
      algorithms.
      
      Andres Freund, reviewed by Hitoshi Harada and myself
      36820250
    • Alvaro Herrera's avatar
      Mention extra_float_digits in floating point docs · 148326b9
      Alvaro Herrera authored
      Make it easier for readers of the FP docs to find out about possibly
      truncated values.
      
      Per complaint from Tom Duffey in message
      F0E0F874-C86F-48D1-AA2A-0C5365BF5118@trillitech.com
      
      Author: Albe Laurenz
      Reviewed by: Abhijit Menon-Sen
      148326b9
    • Heikki Linnakangas's avatar
      Silence compiler warning in assertion-enabled builds. · d2e71ff7
      Heikki Linnakangas authored
      With -Wtype-limits, gcc correctly points out that size_t can never be < 0.
      Backpatch to 9.3 and 9.2. It's been like this forever, but in <= 9.1 you got
      a lot other warnings with -Wtype-limits anyway (at least with my version of
      gcc).
      
      Andres Freund
      d2e71ff7
    • Bruce Momjian's avatar
      pg_upgrade: revert changing '' to "" · cce5d851
      Bruce Momjian authored
      On the command line, GUC option strings are handled by the guc parser,
      not by the shell parser, so '' is the proper way to represent a
      zero-length string.  This reverts commit
      3132a9b7.
      cce5d851
    • Robert Haas's avatar
      Use an MVCC snapshot, rather than SnapshotNow, for catalog scans. · 568d4138
      Robert Haas authored
      SnapshotNow scans have the undesirable property that, in the face of
      concurrent updates, the scan can fail to see either the old or the new
      versions of the row.  In many cases, we work around this by requiring
      DDL operations to hold AccessExclusiveLock on the object being
      modified; in some cases, the existing locking is inadequate and random
      failures occur as a result.  This commit doesn't change anything
      related to locking, but will hopefully pave the way to allowing lock
      strength reductions in the future.
      
      The major issue has held us back from making this change in the past
      is that taking an MVCC snapshot is significantly more expensive than
      using a static special snapshot such as SnapshotNow.  However, testing
      of various worst-case scenarios reveals that this problem is not
      severe except under fairly extreme workloads.  To mitigate those
      problems, we avoid retaking the MVCC snapshot for each new scan;
      instead, we take a new snapshot only when invalidation messages have
      been processed.  The catcache machinery already requires that
      invalidation messages be sent before releasing the related heavyweight
      lock; else other backends might rely on locally-cached data rather
      than scanning the catalog at all.  Thus, making snapshot reuse
      dependent on the same guarantees shouldn't break anything that wasn't
      already subtly broken.
      
      Patch by me.  Review by Michael Paquier and Andres Freund.
      568d4138