1. 15 Dec, 2011 2 commits
  2. 14 Dec, 2011 4 commits
  3. 12 Dec, 2011 2 commits
    • Tom Lane's avatar
      Move BKP_REMOVABLE bit from individual WAL records to WAL page headers. · 2dd9322b
      Tom Lane authored
      Removing this bit from xl_info allows us to restore the old limit of four
      (not three) separate pages touched by a WAL record, which is needed for the
      upcoming SP-GiST feature, and will likely be useful elsewhere in future.
      
      When we implemented XLR_BKP_REMOVABLE in 2007, we had to do it like that
      because no special WAL-visible action was taken when starting a backup.
      However, now we force a segment switch when starting a backup, so a
      compressing WAL archiver (such as pglesslog) that uses the state shown in
      the current page header will not be fooled as to removability of backup
      blocks.  The only downside is that the archiver will not return to
      compressing mode for up to one WAL page after the backup is over, which is
      a small price to pay for getting back the extra xl_info bit.  In any case
      the archiver could look for XLOG_BACKUP_END records if it thought it was
      worth the trouble to do so.
      
      Bump XLOG_PAGE_MAGIC since this is effectively a change in WAL format.
      2dd9322b
    • Heikki Linnakangas's avatar
      Revert the behavior of inet/cidr functions to not unpack the arguments. · 8409b604
      Heikki Linnakangas authored
      I forgot to change the functions to use the PG_GETARG_INET_PP() macro,
      when I changed DatumGetInetP() to unpack the datum, like Datum*P macros
      usually do. Also, I screwed up the definition of the PG_GETARG_INET_PP()
      macro, and didn't notice because it wasn't used.
      
      This fixes the memory leak when sorting inet values, as reported
      by Jochen Erwied and debugged by Andres Freund. Backpatch to 8.3, like
      the previous patch that broke it.
      8409b604
  4. 10 Dec, 2011 3 commits
  5. 09 Dec, 2011 4 commits
  6. 07 Dec, 2011 6 commits
  7. 06 Dec, 2011 3 commits
  8. 05 Dec, 2011 3 commits
    • Bruce Momjian's avatar
      In pg_upgrade, allow tables using regclass to be upgraded because we · 0e8f6bf0
      Bruce Momjian authored
      preserve pg_class oids since PG 9.0.
      0e8f6bf0
    • Tom Lane's avatar
      Remove troublesome Asserts in cost_mergejoin(). · ff68b256
      Tom Lane authored
      While logically correct, these two Asserts could fail depending on the
      vagaries of floating-point arithmetic.  In particular, on machines with
      floating-point registers wider than standard "double" values, it was
      possible for the compiler to compare a rounded-to-double value already
      stored in memory with an unrounded long double value still in a register.
      Given the preceding checks, these assertions aren't adding much, so let's
      just get rid of them rather than try to find a compiler-proof fix.
      Per report from Pavel Stehule.
      
      Given the lack of previous complaints, and the fact that only developers
      would be likely to trip over it, I'm only going to change this in HEAD,
      even though the code has been like this for a long time.
      ff68b256
    • Peter Eisentraut's avatar
      plpython: Add SPI cursor support · 89e850e6
      Peter Eisentraut authored
      Add a function plpy.cursor that is similar to plpy.execute but uses an
      SPI cursor to avoid fetching the entire result set into memory.
      
      Jan Urbański, reviewed by Steve Singer
      89e850e6
  9. 04 Dec, 2011 3 commits
  10. 03 Dec, 2011 1 commit
  11. 02 Dec, 2011 4 commits
  12. 01 Dec, 2011 5 commits