1. 09 Jul, 2010 4 commits
  2. 08 Jul, 2010 12 commits
  3. 07 Jul, 2010 2 commits
  4. 06 Jul, 2010 10 commits
  5. 05 Jul, 2010 5 commits
    • Tom Lane's avatar
      Dept. of third thoughts: PG_LIBS may contain a -L switch, so it had better · f6af1435
      Tom Lane authored
      stay in front of LDFLAGS.
      f6af1435
    • Tom Lane's avatar
      Make sure LDFLAGS come before LIBS when linking contrib programs. · bdf00543
      Tom Lane authored
      Solaris, at least, seems to be sensitive to the relative order of -L
      and -l switches, so this is needed.  Per buildfarm results.
      bdf00543
    • Tom Lane's avatar
      Fix a few single-file (MODULES, not MODULE_big) contrib makefiles that were · f9e9da66
      Tom Lane authored
      supposing that they should set SHLIB_LINK rather than LDFLAGS_SL.  Since these
      don't go through Makefile.shlib that was a no-op on most platforms.  Also
      regularize the few platform-specific Makefiles that did pay attention to
      SHLIB_LINK: it seems that the real value of that is to pull in BE_DLLLIBS,
      so do that instead.  Per buildfarm failures on cygwin.
      f9e9da66
    • Tom Lane's avatar
      Split the LDFLAGS make variable into two parts: LDFLAGS is now used for · 291a9577
      Tom Lane authored
      linking both executables and shared libraries, and we add on LDFLAGS_EX when
      linking executables or LDFLAGS_SL when linking shared libraries.  This
      provides a significantly cleaner way of dealing with link-time switches than
      the former behavior.  Also, make sure that the various platform-specific
      %.so: %.o rules incorporate LDFLAGS and LDFLAGS_SL; most of them missed that
      before.  (I did not add these variables for the platforms that invoke $(LD)
      directly, however.  It's not clear if we can do that safely, since for the
      most part we assume these variables use CC command-line syntax.)
      
      Per gripe from Aaron Swenson and subsequent investigation.
      291a9577
    • Heikki Linnakangas's avatar
      The previous fix in CVS HEAD and 8.4 for handling the case where a cursor · eb81b650
      Heikki Linnakangas authored
      being used in a PL/pgSQL FOR loop is closed was inadequate, as Tom Lane
      pointed out. The bug affects FOR statement variants too, because you can
      close an implicitly created cursor too by guessing the "<unnamed portal X>"
      name created for it.
      
      To fix that, "pin" the portal to prevent it from being dropped while it's
      being used in a PL/pgSQL FOR loop. Backpatch all the way to 7.4 which is
      the oldest supported version.
      eb81b650
  6. 04 Jul, 2010 2 commits
  7. 03 Jul, 2010 5 commits
    • Bruce Momjian's avatar
      Remove SGML tab. · a520b78f
      Bruce Momjian authored
      a520b78f
    • Tom Lane's avatar
      Don't set recoveryLastXTime when replaying a checkpoint --- that was a bogus · 87716346
      Tom Lane authored
      idea from the start since the variable is only meant to track commit/abort
      events.  This patch reverts the logic around the variable to what it was in
      8.4, except that the value is now kept in shared memory rather than a static
      variable, so that it can be reported correctly by CreateRestartPoint (which is
      executed in the bgwriter).
      87716346
    • Tom Lane's avatar
      Make vacuum_defer_cleanup_age be PGC_SIGHUP level, since it's not sensible · aceedd88
      Tom Lane authored
      to have different values in different processes of the primary server.
      Also put it into the "Streaming Replication" GUC category; it doesn't belong
      in "Standby Servers" because you use it on the master not the standby.
      In passing also correct guc.c's idea of wal_keep_segments' category.
      aceedd88
    • Tom Lane's avatar
      Replace max_standby_delay with two parameters, max_standby_archive_delay and · e76c1a0f
      Tom Lane authored
      max_standby_streaming_delay, and revise the implementation to avoid assuming
      that timestamps found in WAL records can meaningfully be compared to clock
      time on the standby server.  Instead, the delay limits are compared to the
      elapsed time since we last obtained a new WAL segment from archive or since
      we were last "caught up" to WAL data arriving via streaming replication.
      This avoids problems with clock skew between primary and standby, as well
      as other corner cases that the original coding would misbehave in, such
      as the primary server having significant idle time between transactions.
      Per my complaint some time ago and considerable ensuing discussion.
      
      Do some desultory editing on the hot standby documentation, too.
      e76c1a0f
    • Bruce Momjian's avatar
      Document more clearly on XML namespaces inside xpath function · e6a7416e
      Bruce Momjian authored
      Nikolay Samokhvalov
      e6a7416e