1. 16 Dec, 1999 10 commits
  2. 14 Dec, 1999 5 commits
    • Bruce Momjian's avatar
      · 9805abb0
      Bruce Momjian authored
      This patch solves a couple of memory leaks in ecpglib.c.  The patch is
      ok for both the
      development tree (CVS) and for 6.5.3.
      
       Stephen Birch
      9805abb0
    • Tom Lane's avatar
      fix_parsetree_attnums was not nearly smart enough about walking parse · 7431796b
      Tom Lane authored
      trees.  Also rewrite find_all_inheritors() in a more intelligible style.
      7431796b
    • Bruce Momjian's avatar
      > From what I gather, this should be a little cleaner because the · 549a8ba5
      Bruce Momjian authored
      triggered
      > function now returns the right datatype.
      
      Oops, I got crossed up with Jan's improvements. Ignore this.
      
      --
      Peter Eisentraut                  Sernanders väg 10:115
      peter_e@gmx.net                   75262 Uppsala
      549a8ba5
    • Bruce Momjian's avatar
      >From what I gather, this should be a little cleaner because the · f5a613c0
      Bruce Momjian authored
      triggered
      function now returns the right datatype.
      
      --
      Peter Eisentraut                  Sernanders väg 10:115
      f5a613c0
    • Bruce Momjian's avatar
      Depending on my interpreting (and programming) skills, this might solve · bcaabc56
      Bruce Momjian authored
      anywhere from zero to two TODO items.
      
      * Allow flag to control COPY input/output of NULLs
      
      I got this:
      COPY table .... [ WITH NULL AS 'string' ]
      which does what you'd expect. The default is \N, otherwise you can use
      empty strings, etc. On Copy In this acts like a filter: every data item
      that looks like 'string' becomes a NULL. Pretty straightforward.
      
      This also seems to be related to
      
      * Make postgres user have a password by default
      
      If I recall this discussion correctly, the problem was actually that the
      default password for the postgres (or any) user is in fact "\N", because
      of the way copy is used. With this change, the file pg_pwd is copied out
      with nulls as empty strings, so if someone doesn't have a password, the
      password is just '', which one would expect from a new account. I don't
      think anyone really wants a hard-coded default password.
      
      Peter Eisentraut                  Sernanders väg 10:115
      bcaabc56
  3. 13 Dec, 1999 4 commits
  4. 12 Dec, 1999 3 commits
    • Tom Lane's avatar
      efb36d2b
    • Bruce Momjian's avatar
      I'm in TODO mood today ... · cb00b7fa
      Bruce Momjian authored
      * Document/trigger/rule so changes to pg_shadow recreate pg_pwd
      
      I did it with a trigger and it seems to work like a charm. The function
      that already updates the file for create and alter user has been made a
      built-in "SQL" function and a trigger is created at initdb time.
      
      Comments around the pg_pwd updating function seem to be worried about
      this
      routine being called concurrently, but I really don't see a reason to
      worry about this. Verify for yourself. I guess we never had a system
      trigger before, so treat this with care, and feel free to adjust the
      nomenclature as well.
      
      --
      Peter Eisentraut                  Sernanders väg 10:115
      cb00b7fa
    • Bruce Momjian's avatar
      Meanwhile, database names with single quotes in names don't work very well · 11023eb1
      Bruce Momjian authored
      at all, and because of shell quoting rules this can't be fixed, so I put
      in error messages to that end.
      
      Also, calling create or drop database in a transaction block is not so
      good either, because the file system mysteriously refuses to roll back rm
      calls on transaction aborts. :) So I put in checks to see if a transaction
      is in progress and signal an error.
      
      Also I put the whole call in a transaction of its own to be able to roll
      back changes to pg_database in case the file system operations fail.
      
      The alternative location issues I posted recently were untouched, awaiting
      the outcome of that discussion. Other than that, this should be much more
      fool-proof now.
      
      The docs I cleaned up as well.
      
      Peter Eisentraut                  Sernanders väg 10:115
      11023eb1
  5. 11 Dec, 1999 4 commits
  6. 10 Dec, 1999 13 commits
  7. 09 Dec, 1999 1 commit