1. 28 Nov, 1999 4 commits
  2. 27 Nov, 1999 4 commits
  3. 26 Nov, 1999 4 commits
    • Bruce Momjian's avatar
      Change // to /* */ · a7f14616
      Bruce Momjian authored
      a7f14616
    • Bruce Momjian's avatar
      Update TODO list. · 1592c317
      Bruce Momjian authored
      1592c317
    • Bruce Momjian's avatar
      Fix missing prototype psql warning. · 09f185a0
      Bruce Momjian authored
      09f185a0
    • Bruce Momjian's avatar
      * Includes tab completion. It's not magic, but it's very cool. At any · 78bc83fe
      Bruce Momjian authored
      rate
        it's better than what used to be there.
      
      * Does proper SQL "host variable" substitution as pointed out by Andreas
        Zeugwetter (thanks): select * from :foo; Also some changes in how ':'
        and ';' are treated (escape with \ to send to backend). This does
      _not_
        affect the '::' cast operator, but perhaps others that contain : or ;
        (but there are none right now).
      
      * To show description with a <something> listing, append '?' to command
        name, e.g., \df?. This seemed to be the convenient and logical
      solution.
        Or append a '+' to see more useless information, e.g., \df+.
      
      * Fixed fflush()'ing bug pointed out by Jan during the regression test
        discussion.
      
      * Added LastOid variable. This ought to take care of TODO item "Add a
        function to return the last inserted oid, for use in psql scripts"
        (under CLIENTS)
        E.g.,
      insert into foo values(...);
      insert into bar values(..., :LastOid);
      \echo $LastOid
      
      * \d command shows constraints, rules, and triggers defined on the table
        (in addition to indices)
      
      * Various fixes, optimizations, corrections
      
      * Documentation update as well
      
      
      Note: This now requires snprintf(), which, if necessary, is taken from
      src/backend/port. This is certainly a little weird, but it should
      suffice
      until a source tree cleanup is done.
      
      Enjoy.
      
      --
      Peter Eisentraut                  Sernanders väg 10:115
      78bc83fe
  4. 25 Nov, 1999 4 commits
  5. 24 Nov, 1999 5 commits
  6. 23 Nov, 1999 10 commits
  7. 22 Nov, 1999 6 commits
  8. 21 Nov, 1999 3 commits
    • Tom Lane's avatar
      Combine index_info and find_secondary_indexes into a single routine that · 610dfa6d
      Tom Lane authored
      returns a list of RelOptInfos, eliminating the need for static state
      in index_info.  That static state was a direct cause of coredumps; if
      anything decided to elog(ERROR) partway through an index_info search of
      pg_index, the next query would try to close a scan pointer that was
      pointing at no-longer-valid memory.  Another example of the reasons to
      avoid static state variables...
      610dfa6d
    • Tom Lane's avatar
      index_destroy() must grab exclusive access to the parent table · 40d3e925
      Tom Lane authored
      of the index it wants to destroy.  This ensures that no other backend is
      actively scanning or updating that index.  Getting exclusive access on
      the index alone is NOT sufficient, because the executor is rather
      cavalier about getting locks on indexes --- see ExecOpenIndices().
      It might be better to grab index locks in the executor, but I'm not
      sure the extra lockmanager traffic is really worth it just to make
      index_destroy cleaner.
      40d3e925
    • Tom Lane's avatar
      Clean up comments. · 3047b444
      Tom Lane authored
      3047b444