1. 23 Jan, 2011 6 commits
    • Magnus Hagander's avatar
      f88a6381
    • Magnus Hagander's avatar
      filemode is parsed on win32 even if never used · fe12263c
      Magnus Hagander authored
      Per buildfarm failure.
      fe12263c
    • Magnus Hagander's avatar
      Add pg_basebackup tool for streaming base backups · 048d148f
      Magnus Hagander authored
      This tool makes it possible to do the pg_start_backup/
      copy files/pg_stop_backup step in a single command.
      
      There are still some steps to be done before this is a
      complete backup solution, such as the ability to stream
      the required WAL logs, but it's still usable, and
      could do with some buildfarm coverage.
      
      In passing, make the checkpoint request optionally
      fast instead of hardcoding it.
      
      Magnus Hagander, reviewed by Fujii Masao and Dimitri Fontaine
      048d148f
    • Robert Haas's avatar
      Code cleanup for assign_transaction_read_only. · 6f59777c
      Robert Haas authored
      As in commit fb4c5d27 on 2011-01-21,
      this avoids spurious debug messages and allows idempotent changes at
      any time.  Along the way, make assign_XactIsoLevel allow idempotent
      changes even when not within a subtransaction, to be consistent with
      the new coding of assign_transaction_read_only and because there's
      no compelling reason to do otherwise.
      
      Kevin Grittner, with some adjustments.
      6f59777c
    • Tom Lane's avatar
      Quick hack to un-break plpython regression tests. · cc73c160
      Tom Lane authored
      It's not clear to me what should happen to the other plpython_unicode
      variant expected files, but this patch gets things passing on my own
      machines and at least some of the buildfarm.
      cc73c160
    • Tom Lane's avatar
      Allow the wal_buffers setting to be auto-tuned to a reasonable value. · 0f73aae1
      Tom Lane authored
      If wal_buffers is initially set to -1 (which is now the default), it's
      replaced by 1/32nd of shared_buffers, with a minimum of 8 (the old default)
      and a maximum of the XLOG segment size.  The allowed range for manual
      settings is still from 4 up to whatever will fit in shared memory.
      
      Greg Smith, with implementation correction by me.
      0f73aae1
  2. 22 Jan, 2011 10 commits
    • Tom Lane's avatar
      Suppress "control reaches end of non-void function" warning from gcc 4.5. · 518b1e96
      Tom Lane authored
      Not sure why I'm seeing this on Fedora 14 and not earlier versions.
      Seems like a regression that gcc no longer knows that DIE() doesn't return.
      Still, adding a dummy return is harmless enough.
      518b1e96
    • Tom Lane's avatar
      Suppress possibly-uninitialized-variable warnings from gcc 4.5. · e2627258
      Tom Lane authored
      It appears that gcc 4.5 can issue such warnings for whole structs, not
      just scalar variables as in the past.  Refactor some pg_dump code slightly
      so that the OutputContext local variables are always initialized, even
      if they won't be used.  It's cheap enough to not be worth worrying about.
      e2627258
    • Peter Eisentraut's avatar
      Get rid of the global variable holding the error state · 116ce2f4
      Peter Eisentraut authored
      Global error handling led to confusion and was hard to manage.  With
      this change, errors from PostgreSQL are immediately reported to Python
      as exceptions.  This requires setting a Python exception after
      reporting the caught PostgreSQL error as a warning, because PLy_elog
      destroys the Python exception state.
      
      Ideally, all places where PostgreSQL errors need to be reported back
      to Python should be wrapped in subtransactions, to make going back to
      Python from a longjmp safe.  This will be handled in a separate patch.
      
      Jan Urbański
      116ce2f4
    • 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
  3. 21 Jan, 2011 8 commits
  4. 20 Jan, 2011 5 commits
  5. 19 Jan, 2011 2 commits
  6. 18 Jan, 2011 9 commits