1. 12 Jul, 2010 1 commit
  2. 10 Jul, 2010 2 commits
  3. 09 Jul, 2010 6 commits
    • Tom Lane's avatar
      Avoid an Assert failure in deconstruct_array() by making get_attstatsslot() · 5ce63f48
      Tom Lane authored
      use the actual element type of the array it's disassembling, rather than
      trusting the type OID passed in by its caller.  This is needed because
      sometimes the planner passes in a type OID that's only binary-compatible
      with the target column's type, rather than being an exact match.  Per an
      example from Bernd Helmle.
      
      Possibly we should refactor get_attstatsslot/free_attstatsslot to not expect
      the caller to supply type ID data at all, but for now I'll just do the
      minimum-change fix.
      
      Back-patch to 7.4.  Bernd's test case only crashes back to 8.0, but since
      these subroutines are the same in 7.4, I suspect there may be variant
      cases that would crash 7.4 as well.
      5ce63f48
    • Tom Lane's avatar
      Fix ruleutils' get_variable() to print something useful for Vars referencing · 2b8a6245
      Tom Lane authored
      resjunk outputs of subquery tlists, instead of throwing an error.  Per bug
      #5548 from Daniel Grace.
      
      We might at some point find we ought to back-patch this further than 9.0,
      but I think that such Vars can only occur as resjunk members of upper-level
      tlists, in which case the problem can't arise because prior versions didn't
      print resjunk tlist items in EXPLAIN VERBOSE.
      2b8a6245
    • Bruce Momjian's avatar
      Properly report errno/out-of-disk-space error from pg_upgrade when in · a0d7c5f6
      Bruce Momjian authored
      copy mode, per report from depstein@alliedtesting.com.
      
      Patch suggestion from Magnus.
      
      Backpatch to 9.0.X.
      a0d7c5f6
    • Robert Haas's avatar
      Add a hook in ExecCheckRTPerms(). · f4122a8d
      Robert Haas authored
      This hook allows a loadable module to gain control when table permissions
      are checked.  It is expected to be used by an eventual SE-PostgreSQL
      implementation, but there are other possible applications as well.  A
      sample contrib module can be found in the archives at:
      
      http://archives.postgresql.org/pgsql-hackers/2010-05/msg01095.php
      
      Robert Haas and Stephen Frost
      f4122a8d
    • Tom Lane's avatar
      Stamp HEAD as 9.1devel. · b40466c3
      Tom Lane authored
      (And there was much rejoicing.)
      b40466c3
    • Marc G. Fournier's avatar
      · 1084f317
      Marc G. Fournier authored
      tag beta3
      1084f317
  4. 08 Jul, 2010 12 commits
  5. 07 Jul, 2010 2 commits
  6. 06 Jul, 2010 10 commits
  7. 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
  8. 04 Jul, 2010 2 commits