Skip to content
Snippets Groups Projects
  1. Dec 31, 1999
  2. Dec 30, 1999
  3. Dec 29, 1999
  4. Dec 28, 1999
  5. Dec 26, 1999
  6. Dec 24, 1999
    • Tom Lane's avatar
      Clean up handling of explicit NULL constants. Cases like · 350cb386
      Tom Lane authored
      	SELECT null::text;
      	SELECT int4fac(null);
      work as expected now.  In some cases a NULL must be surrounded by
      parentheses:
      	SELECT 2 + null;                 fails
      	SELECT 2 + (null);               OK
      This is a grammatical ambiguity that seems difficult to avoid.  Other
      than that, NULLs seem to behave about like you'd expect.  The internal
      implementation is that NULL constants are typed as UNKNOWN (like
      untyped string constants) until the parser can deduce the right type.
      350cb386
  7. Dec 22, 1999
    • Hiroshi Inoue's avatar
      · a3e2bc73
      Hiroshi Inoue authored
      to live in a transaction before access to db
      during backend startup.
      a3e2bc73
  8. Dec 21, 1999
  9. Dec 20, 1999
  10. Dec 17, 1999
  11. Dec 16, 1999
  12. Dec 14, 1999
    • 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
  13. Dec 13, 1999
  14. Dec 12, 1999
    • Tom Lane's avatar
    • 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
  15. Dec 10, 1999
Loading