Skip to content
Snippets Groups Projects
  1. Jun 09, 2010
  2. Jun 03, 2010
  3. Feb 26, 2010
  4. Feb 24, 2010
  5. Feb 14, 2010
    • Robert Haas's avatar
      Wrap calls to SearchSysCache and related functions using macros. · e26c539e
      Robert Haas authored
      The purpose of this change is to eliminate the need for every caller
      of SearchSysCache, SearchSysCacheCopy, SearchSysCacheExists,
      GetSysCacheOid, and SearchSysCacheList to know the maximum number
      of allowable keys for a syscache entry (currently 4).  This will
      make it far easier to increase the maximum number of keys in a
      future release should we choose to do so, and it makes the code
      shorter, too.
      
      Design and review by Tom Lane.
      e26c539e
  6. Feb 04, 2010
  7. Jan 24, 2010
  8. Jan 02, 2010
  9. Dec 29, 2009
    • Heikki Linnakangas's avatar
      Previous fix for temporary file management broke returning a set from · 84d723b6
      Heikki Linnakangas authored
      PL/pgSQL function within an exception handler. Make sure we use the right
      resource owner when we create the tuplestore to hold returned tuples.
      
      Simplify tuplestore API so that the caller doesn't need to be in the right
      memory context when calling tuplestore_put* functions. tuplestore.c
      automatically switches to the memory context used when the tuplestore was
      created. Tuplesort was already modified like this earlier. This patch also
      removes the now useless MemoryContextSwitch calls from callers.
      
      Report by Aleksei on pgsql-bugs on Dec 22 2009. Backpatch to 8.1, like
      the previous patch that broke this.
      84d723b6
  10. Sep 13, 2009
    • Joe Conway's avatar
      plug dblink resource leak · d6119d80
      Joe Conway authored
      dblink generates orphaned connections when called with a connection string,
      fail_on_error = true, and an ERROR occurs. Discovery and patch by
      Tatsuhito Kasahara. Introduced in 8.4.
      d6119d80
  11. Aug 05, 2009
    • Joe Conway's avatar
      Implement dblink_get_notify(). · f4095b4c
      Joe Conway authored
      Adds the ability to retrieve async notifications using dblink,
      via the addition of the function dblink_get_notify(). Original patch
      by Marcus Kempe, suggestions by Tom Lane and Alvaro Herrera, patch
      review and adjustments by Joe Conway.
      f4095b4c
  12. Jun 11, 2009
  13. Jun 09, 2009
  14. Jun 06, 2009
  15. Jun 02, 2009
  16. Jan 01, 2009
  17. Dec 01, 2008
  18. Sep 22, 2008
    • Tom Lane's avatar
      Fix dblink_connect() so that it verifies that a password is supplied in the · cae7ad90
      Tom Lane authored
      conninfo string *before* trying to connect to the remote server, not after.
      As pointed out by Marko Kreen, in certain not-very-plausible situations
      this could result in sending a password from the postgres user's .pgpass file,
      or other places that non-superusers shouldn't have access to, to an
      untrustworthy remote server.  The cleanest fix seems to be to expose libpq's
      conninfo-string-parsing code so that dblink can check for a password option
      without duplicating the parsing logic.
      
      Joe Conway, with a little cleanup by Tom Lane
      cae7ad90
  19. Jul 03, 2008
    • Joe Conway's avatar
      When an ERROR happens on a dblink remote connection, take · c0241b95
      Joe Conway authored
      pains to pass the ERROR message components locally, including
      using the passed SQLSTATE. Also wrap the passed info in an
      appropriate CONTEXT message. Addresses complaint by Henry
      Combrinck. Joe Conway, with much good advice from Tom Lane.
      c0241b95
  20. Apr 04, 2008
  21. Mar 26, 2008
  22. Mar 25, 2008
    • Tom Lane's avatar
      Simplify and standardize conversions between TEXT datums and ordinary C · 220db7cc
      Tom Lane authored
      strings.  This patch introduces four support functions cstring_to_text,
      cstring_to_text_with_len, text_to_cstring, and text_to_cstring_buffer, and
      two macros CStringGetTextDatum and TextDatumGetCString.  A number of
      existing macros that provided variants on these themes were removed.
      
      Most of the places that need to make such conversions now require just one
      function or macro call, in place of the multiple notational layers that used
      to be needed.  There are no longer any direct calls of textout or textin,
      and we got most of the places that were using handmade conversions via
      memcpy (there may be a few still lurking, though).
      
      This commit doesn't make any serious effort to eliminate transient memory
      leaks caused by detoasting toasted text objects before they reach
      text_to_cstring.  We changed PG_GETARG_TEXT_P to PG_GETARG_TEXT_PP in a few
      places where it was easy, but much more could be done.
      
      Brendan Jurd and Tom Lane
      220db7cc
  23. Jan 14, 2008
  24. Jan 03, 2008
    • Tom Lane's avatar
      The original patch to disallow non-passworded connections to non-superusers · 919c9f6c
      Tom Lane authored
      failed to cover all the ways in which a connection can be initiated in dblink.
      Plug the remaining holes.  Also, disallow transient connections in functions
      for which that feature makes no sense (because they are only sensible as
      part of a sequence of operations on the same connection).  Joe Conway
      
      Security: CVE-2007-6601
      919c9f6c
  25. Jan 01, 2008
  26. Nov 15, 2007
  27. Aug 27, 2007
  28. Jul 08, 2007
    • Joe Conway's avatar
      Restrict non-superusers to password authenticated connections · d92583f8
      Joe Conway authored
      to prevent possible escalation of privilege. Provide new SECURITY
      DEFINER functions with old behavior, but initially REVOKE ALL
      from public for these functions. Per list discussion and design
      proposed by Tom Lane. A different approach will be used for
      back-branches, committed separately.
      d92583f8
  29. Apr 06, 2007
    • Tom Lane's avatar
      Support varlena fields with single-byte headers and unaligned storage. · 3e23b68d
      Tom Lane authored
      This commit breaks any code that assumes that the mere act of forming a tuple
      (without writing it to disk) does not "toast" any fields.  While all available
      regression tests pass, I'm not totally sure that we've fixed every nook and
      cranny, especially in contrib.
      
      Greg Stark with some help from Tom Lane
      3e23b68d
  30. Feb 07, 2007
  31. Jan 05, 2007
  32. Oct 19, 2006
  33. Oct 04, 2006
  34. Sep 02, 2006
  35. Jul 11, 2006
  36. Jun 21, 2006
  37. May 31, 2006
  38. Mar 11, 2006
Loading