1. 07 May, 2010 1 commit
  2. 06 May, 2010 2 commits
  3. 05 May, 2010 2 commits
  4. 03 May, 2010 5 commits
  5. 02 May, 2010 6 commits
  6. 01 May, 2010 4 commits
    • Tom Lane's avatar
      Add code to InternalIpcMemoryCreate() to handle the case where shmget() · 15416323
      Tom Lane authored
      returns EINVAL for an existing shared memory segment.  Although it's not
      terribly sensible, that behavior does meet the POSIX spec because EINVAL
      is the appropriate error code when the existing segment is smaller than the
      requested size, and the spec explicitly disclaims any particular ordering of
      error checks.  Moreover, it does in fact happen on OS X and probably other
      BSD-derived kernels.  (We were able to talk NetBSD into changing their code,
      but purging that behavior from the wild completely seems unlikely to happen.)
      We need to distinguish collision with a pre-existing segment from invalid size
      request in order to behave sensibly, so it's worth some extra code here to get
      it right.  Per report from Gavin Kistner and subsequent investigation.
      
      Back-patch to all supported versions, since any of them could get used
      with a kernel having the debatable behavior.
      15416323
    • Tom Lane's avatar
      Install hack workaround for failure of 'make all' in VPATH builds. · 170456c9
      Tom Lane authored
      It appears that gmake gets confused if postgres.sgml is not present in
      the working directory, and instantiates some default rule or other that
      would let postgres.sgml be built from postgres.xml.  I haven't been able
      to track down exactly where that's coming from, but the problem can be
      dodged by specifying srcdir explicitly in the rule for postgres.xml.
      Per report from Vladimir Kokovic.
      170456c9
    • Tom Lane's avatar
      Adjust postgres.xml rule so that make will notice a failure exit from osx. · f856fad8
      Tom Lane authored
      The previous coding had it in a pipe, which on most shells won't report
      the error.  Per experimentation with a bug report from Vladimir Kokovic.
      This doesn't actually fix his problem, but it does explain why make
      didn't report that there was a problem.
      f856fad8
    • Tom Lane's avatar
      Fix leakage of proc-related storage in plpython's inline handler. · f5c23ca2
      Tom Lane authored
      Per report from Andres Freund.
      f5c23ca2
  7. 30 Apr, 2010 6 commits
  8. 29 Apr, 2010 7 commits
  9. 28 Apr, 2010 7 commits
    • Tom Lane's avatar
      Fix typo, per Thom Brown. · fa171dd8
      Tom Lane authored
      fa171dd8
    • Tom Lane's avatar
      Modify information_schema._pg_keysequal() to avoid search path risk when · f4ec2fab
      Tom Lane authored
      contrib/intarray is loaded.  Per bug #5417 from Kenaniah Cerny.
      
      Not forcing initdb since backend doesn't directly depend on this,
      and few people have run into it.
      f4ec2fab
    • Tom Lane's avatar
      Minor editorializing on pg_controldata and pg_resetxlog: adjust some message · c80a85e3
      Tom Lane authored
      wording, deal explicitly with some fields that were being silently left zero.
      c80a85e3
    • Tom Lane's avatar
      pg_controldata needs #define FRONTEND, same as pg_resetxlog. · 82e38aba
      Tom Lane authored
      Per buildfarm results from dawn_bat.
      82e38aba
    • Tom Lane's avatar
      Modify ShmemInitStruct and ShmemInitHash to throw errors internally, · 77acab75
      Tom Lane authored
      rather than returning NULL for some-but-not-all failures as they used to.
      Remove now-redundant tests for NULL from call sites.
      
      We had to do something about this because many call sites were failing to
      check for NULL; and changing it like this seems a lot more useful and
      mistake-proof than adding checks to the call sites without them.
      77acab75
    • Alvaro Herrera's avatar
      5f70a04c
    • Heikki Linnakangas's avatar
      Introduce wal_level GUC to explicitly control if information needed for · 9b8a7332
      Heikki Linnakangas authored
      archival or hot standby should be WAL-logged, instead of deducing that from
      other options like archive_mode. This replaces recovery_connections GUC in
      the primary, where it now has no effect, but it's still used in the standby
      to enable/disable hot standby.
      
      Remove the WAL-logging of "unlogged operations", like creating an index
      without WAL-logging and fsyncing it at the end. Instead, we keep a copy of
      the wal_mode setting and the settings that affect how much shared memory a
      hot standby server needs to track master transactions (max_connections,
      max_prepared_xacts, max_locks_per_xact) in pg_control. Whenever the settings
      change, at server restart, write a WAL record noting the new settings and
      update pg_control. This allows us to notice the change in those settings in
      the standby at the right moment, they used to be included in checkpoint
      records, but that meant that a changed value was not reflected in the
      standby until the first checkpoint after the change.
      
      Bump PG_CONTROL_VERSION and XLOG_PAGE_MAGIC. Whack XLOG_PAGE_MAGIC back to
      the sequence it used to follow, before hot standby and subsequent patches
      changed it to 0x9003.
      9b8a7332