Skip to content
Snippets Groups Projects
  1. Jul 25, 2003
    • Bruce Momjian's avatar
      > Rod Taylor <rbt@rbt.ca> writes: · 187e8651
      Bruce Momjian authored
      > > It seems that readline() on my system (FreeBSD 4.8) isn't declared to
      > > take the prompt as a const.  Thus, remove const from gets_interactive()
      > > to remove the warning.
      >
      > I think it would be a lot cleaner to just put a cast to char * into the
      > readline call (with a note about why).
      
      Ok.. that works.
      
      I must say it's a little strange being able to take a constant and say
      its no longer constant anymore -- but I suppose it's no different than
      defining then undefining pre-processor constants.
      
      Rod Taylor <rbt@rbt.ca>
      187e8651
  2. Jul 23, 2003
  3. Mar 20, 2003
    • Bruce Momjian's avatar
      I'm continuing to work on cleaning up code in psql. As things appear · add932ee
      Bruce Momjian authored
      now, my changes seem to work.  Some possible minor bugs got squished
      on the way but I can't be sure without more feedback from people who
      really put the code to the test.
      
      The new patch mostly simplifies variable handling and reduces code
      duplication.  Changes in the command parser eliminate some redundant
      variables (boolean state + depth counter), replaces some
      "else if" constructs with switches, and so on.  It is meant to be
      applied together with my previous patch, although I hope they don't
      conflict; I went back to the CVS version for this one.
      
      One more thing I thought should perhaps be changed: an IGNOREEOF
      value of n will ignore only n-1 EOFs.  I didn't want to touch this
      for fear of breaking existing applications, but it does seem a tad
      illogical.
      
      Jeroen T. Vermeulen
      add932ee
    • Bruce Momjian's avatar
      Here's some changes I made last night to psql's common.c (as found in · be1c6e75
      Bruce Momjian authored
      7.3.2).  It removes some code duplication and #ifdeffing, and some
      unstructured ugliness such as tacky breaks and an unneeded continue.
      Breaks up a large function into smaller functions and reduces required
      nesting levels, and kills a variable or two.
      
      Jeroen T. Vermeulen
      be1c6e75
  4. Sep 06, 2002
  5. Apr 11, 2002
  6. Oct 25, 2001
  7. Sep 12, 2001
  8. Feb 27, 2001
  9. Feb 10, 2001
    • Tom Lane's avatar
      Restructure the key include files per recent pghackers discussion: there · d08741ea
      Tom Lane authored
      are now separate files "postgres.h" and "postgres_fe.h", which are meant
      to be the primary include files for backend .c files and frontend .c files
      respectively.  By default, only include files meant for frontend use are
      installed into the installation include directory.  There is a new make
      target 'make install-all-headers' that adds the whole content of the
      src/include tree to the installed fileset, for use by people who want to
      develop server-side code without keeping the complete source tree on hand.
      Cleaned up a whole lot of crufty and inconsistent header inclusions.
      d08741ea
  10. Nov 27, 2000
  11. Apr 12, 2000
  12. Feb 20, 2000
  13. Feb 16, 2000
  14. Feb 08, 2000
  15. Jan 29, 2000
    • Peter Eisentraut's avatar
      A few minor psql enhancements · 2b84cbb6
      Peter Eisentraut authored
      Initdb help correction
      Changed end/abort to commit/rollback and changed related notices
      Commented out way old printing functions in libpq
      Fixed a typo in alter table / alter column
      2b84cbb6
  16. Jan 19, 2000
  17. Jan 14, 2000
  18. Dec 20, 1999
  19. Dec 10, 1999
  20. Nov 26, 1999
    • 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
  21. Nov 05, 1999
  22. Nov 04, 1999
Loading