1. 25 Jan, 2011 9 commits
  2. 24 Jan, 2011 11 commits
  3. 23 Jan, 2011 16 commits
  4. 22 Jan, 2011 4 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