1. 06 Mar, 2010 2 commits
    • Magnus Hagander's avatar
      Add --psqlrc=FILENAME parameter to psql, to process an explicitly named · 66c2cc2b
      Magnus Hagander authored
      file instead of ~/.psqlrc on startup.
      66c2cc2b
    • Tom Lane's avatar
      When reading pg_hba.conf and similar files, do not treat @file as an inclusion · b8b34b7b
      Tom Lane authored
      unless (1) the @ isn't quoted and (2) the filename isn't empty.  This guards
      against unexpectedly treating usernames or other strings in "flat files"
      as inclusion requests, as seen in a recent trouble report from Ed L.
      The empty-filename case would be guaranteed to misbehave anyway, because our
      subsequent path-munging behavior results in trying to read the directory
      containing the current input file.
      
      I think this might finally explain the report at
      http://archives.postgresql.org/pgsql-bugs/2004-05/msg00132.php
      of a crash after printing "authentication file token too long, skipping",
      since I was able to duplicate that message (though not a crash) on a
      platform where stdio doesn't refuse to read directories.  We never got
      far in investigating that problem, but now I'm suspicious that the trigger
      condition was an @ in the flat password file.
      
      Back-patch to all active branches since the problem can be demonstrated in all
      branches except HEAD.  The test case, creating a user named "@", doesn't cause
      a problem in HEAD since we got rid of the flat password file.  Nonetheless it
      seems like a good idea to not consider quoted @ as a file inclusion spec,
      so I changed HEAD too.
      b8b34b7b
  2. 05 Mar, 2010 1 commit
  3. 04 Mar, 2010 1 commit
  4. 03 Mar, 2010 10 commits
  5. 02 Mar, 2010 7 commits
  6. 01 Mar, 2010 7 commits
  7. 28 Feb, 2010 5 commits
    • Tom Lane's avatar
      Fix up memory management problems in contrib/xml2. · 936c4af1
      Tom Lane authored
      Get rid of the code that attempted to funnel libxml2's memory allocations
      into palloc.   We already knew from experience with the core xml datatype
      that trying to do this is simply not reliable.  Unlike the core code, I
      did not bother adding a lot of PG_TRY/PG_CATCH logic to try to ensure that
      everything is cleaned up on error exit.  Hence, we might leak some memory
      if one of these functions fails partway through.  Given the deprecated
      status of this contrib module and the fact that errors partway through
      the functions shouldn't be too common, it doesn't seem worth worrying about.
      
      Also fix a separate bug in xpath_table, that it did the wrong things
      if given a result tuple descriptor with less than 2 columns.  While
      such a case isn't very useful in practice, we shouldn't fail or stomp
      memory when it occurs.
      
      Add some simple regression tests based on all the reported crash cases
      that I have on hand.
      
      This should be back-patched, but let's see if the buildfarm likes it first.
      936c4af1
    • Greg Stark's avatar
      Second try at fsyncing directories in CREATE DATABASE. Let's see what the... · 7d7db18a
      Greg Stark authored
      Second try at fsyncing directories in CREATE DATABASE. Let's see what the build farm says of opening directories read-only and ignoring EBADF from fsync of directories
      7d7db18a
    • Tom Lane's avatar
      Assorted code cleanup for contrib/xml2. No change in functionality, · a12333ee
      Tom Lane authored
      just make it a bit less ugly in places.
      a12333ee
    • Bruce Momjian's avatar
      bd7246f6
    • Bruce Momjian's avatar
      *** empty log message *** · 0ff1c3e5
      Bruce Momjian authored
      0ff1c3e5
  8. 27 Feb, 2010 7 commits