1. 22 Jan, 2011 7 commits
    • Tom Lane's avatar
      More pg_test_fsync fixups. · 37eb2cd4
      Tom Lane authored
      Reduce #includes to minimum actually needed; in particular include
      postgres_fe.h not postgres.h, so as to stop build failures on some
      platforms.
      
      Use get_progname() instead of hardwired program name; improve error
      checking for command line syntax; bring error messages into line with
      style guidelines; include strerror result in die() cases.
      37eb2cd4
    • Tom Lane's avatar
      Suppress unused-variables warning when OPEN_SYNC_FLAG isn't defined. · 3ae28ce8
      Tom Lane authored
      Per buildfarm.
      3ae28ce8
    • Magnus Hagander's avatar
      f5a0fd2f
    • Robert Haas's avatar
      Avoid treating WAL senders as normal backends. · a0c75f55
      Robert Haas authored
      The previous coding treated anything that wasn't an autovacuum launcher
      as a normal backend, which is wrong now that we also have WAL senders.
      
      Fujii Masao, reviewed by Robert Haas, Alvaro Herrera, Tom Lane,
      and Bernd Helmle.
      a0c75f55
    • Robert Haas's avatar
      Code cleanup for assign_XactIsoLevel. · fb4c5d27
      Robert Haas authored
      The new coding avoids a spurious debug message when a transaction
      that has changed the isolation level has been rolled back.  It also
      allows the property to be freely changed to the current value within
      a subtransaction.
      
      Kevin Grittner, with one small change by me.
      fb4c5d27
    • Tom Lane's avatar
      More pg_test_fsync cleanup. · cb38ab6d
      Tom Lane authored
      Un-break Windows build (I hope) by making the HAVE_FSYNC_WRITETHROUGH
      code match the backend.  Fix incorrect program help message.  static-ize
      all functions.
      cb38ab6d
    • Tom Lane's avatar
      Clean up pg_test_fsync commit. · bc616703
      Tom Lane authored
      Actually rename the program, rather than just claiming we did.  Hook it
      into the build system.  Get rid of useless dependency on libpq.  Clean up
      #include list and messy whitespace.
      bc616703
  2. 21 Jan, 2011 8 commits
  3. 20 Jan, 2011 5 commits
  4. 19 Jan, 2011 2 commits
  5. 18 Jan, 2011 13 commits
  6. 17 Jan, 2011 5 commits
    • Peter Eisentraut's avatar
      Use HTABs instead of Python dictionary objects to cache procedures · 46211da1
      Peter Eisentraut authored
      Two separate hash tables are used for regular procedures and for
      trigger procedures, since the way trigger procedures work is quite
      different from normal stored procedures.  Change the signatures of
      PLy_procedure_{get,create} to accept the function OID and a Boolean
      flag indicating whether it's a trigger.  This should make implementing
      a PL/Python validator easier.
      
      Using HTABs instead of Python dictionaries makes error recovery
      easier, and allows for procedures to be cached based on their OIDs,
      not their names.  It also allows getting rid of the PyCObject field
      that used to hold a pointer to PLyProcedure, since PyCObjects are
      deprecated in Python 2.7 and replaced by Capsules in Python 3.
      
      Jan Urbański
      46211da1
    • Tom Lane's avatar
      Fix miscalculation of itemsafter in array_set_slice(). · bdd8ed97
      Tom Lane authored
      If the slice to be assigned to was before the existing array lower bound
      (requiring at least one null element to spring into existence to fill the
      gap), the code miscalculated how many entries needed to be copied from
      the old array's null bitmap.  This could result in trashing the array's
      data area (as seen in bug #5840 from Karsten Loesing), or worse.
      
      This has been broken since we first allowed the behavior of assigning to
      non-adjacent slices, in 8.2.  Back-patch to all affected versions.
      bdd8ed97
    • Alvaro Herrera's avatar
      Increment Py_None refcount for NULL array elements · 978445be
      Alvaro Herrera authored
      Per bug #5835 by Julien Demoor
      Author: Alex Hunsaker
      978445be
    • Bruce Momjian's avatar
    • Magnus Hagander's avatar
      Set fallback_application_name in walreceiver · 48075095
      Magnus Hagander authored
      Makes replication slaves identify themselves in the new
      pg_stat_replication view.
      48075095