1. 10 Jun, 2001 1 commit
  2. 28 May, 2001 1 commit
    • Bruce Momjian's avatar
      Sample output that appears below the table attributes for \d: · 32762fac
      Bruce Momjian authored
      Indicies: palm_buy_date_idx
                palm_user_date_idx
      Primary Key: palm_buyers_pkey
      Unique Key: palm_buyers_username
      Constraint: "$1" ((sex = 'M'::bpchar) OR (sex = 'F'::bpchar))
      
      Note that check constraint name now shown as well.  (Makes it a lot easier
      to test inheritance support in ADD/DROP constraint :) )
      
      Attached is a docs change for psql.
      
      Christopher Kings
      32762fac
  3. 27 May, 2001 1 commit
  4. 17 May, 2001 1 commit
  5. 12 May, 2001 1 commit
  6. 09 May, 2001 1 commit
    • Bruce Momjian's avatar
      · a79b698a
      Bruce Momjian authored
      Here's a version of my suggested diffs transplanted to 7.1 beta 5.  I'm
      still looking at the best way to integrate Tom Vijlbrief's fixes
      (insofar as they're still needed); would 7.2 be a suitable time for
      incompatible API changes?
      
      
      Jeroen
      
      
      Changes:
      
      (*) Introduced bool, true, false (replacing some int, 1, 0)
      (*) Made some member functions const
      (*) Documented GetIsNull()
      (*) Marked DisplayTuples() and PrintTuples() as obsolescent; fixed possible
          portability problem (assumed that NULL pointer equals all-zero bit pattern)
      (*) PrintTuples(): renamed width parameter to fillAlign to conform with other
          usage; fixed memory leak and compile issue w.r.t. field separator (should
          also slightly improve performance)
      (*) Fixed some minor compilation issues
      (*) Moved "using namespace std;" out of headers, where they didn't belong; used
          new (temporary) preprocessor macro PGSTD to do this
      (*) Made ToString() static, removed unneeded memset(), made buffer size adapt
          to sizeof(int)
      (*) Made some constructors explicit
      (*) Changed some const std::string & parameters to plain std::string
      (*) Marked PgCursor::Cursor(std::string) as obsolescent (setter with same name
          as getter--bad style)
      (*) Renamed some paramaters previously named "string"
      (*) Introduced size_type typedef for number of tuples in result set
      (*) PgTransaction now supports re-opening after closing, and aborts if not
          explicitly committed prior to destruction
      
      J. T. Vermeulen
      a79b698a
  7. 07 May, 2001 1 commit
  8. 06 May, 2001 2 commits
  9. 24 Mar, 2001 1 commit
  10. 03 Feb, 2001 1 commit
  11. 25 Dec, 2000 1 commit
  12. 22 Nov, 2000 1 commit
  13. 13 Nov, 2000 3 commits
    • Bruce Momjian's avatar
    • Bruce Momjian's avatar
      Remove -k unix socketpath option from client side, allow hostname with · ebd61ac0
      Bruce Momjian authored
      leading slash to behave as a unix socket path.
      ebd61ac0
    • Bruce Momjian's avatar
      UUNET is looking into offering PostgreSQL as a part of a managed web · 2150c2ed
      Bruce Momjian authored
      hosting product, on both shared and dedicated machines.  We currently
      offer Oracle and MySQL, and it would be a nice middle-ground.
      However, as shipped, PostgreSQL lacks the following features we need
      that MySQL has:
      
      1. The ability to listen only on a particular IP address.  Each
         hosting customer has their own IP address, on which all of their
         servers (http, ftp, real media, etc.) run.
      2. The ability to place the Unix-domain socket in a mode 700 directory.
         This allows us to automatically create an empty database, with an
         empty DBA password, for new or upgrading customers without having
         to interactively set a DBA password and communicate it to (or from)
         the customer.  This in turn cuts down our install and upgrade times.
      3. The ability to connect to the Unix-domain socket from within a
         change-rooted environment.  We run CGI programs chrooted to the
         user's home directory, which is another reason why we need to be
         able to specify where the Unix-domain socket is, instead of /tmp.
      4. The ability to, if run as root, open a pid file in /var/run as
         root, and then setuid to the desired user.  (mysqld -u can almost
         do this; I had to patch it, too).
      
      The patch below fixes problem 1-3.  I plan to address #4, also, but
      haven't done so yet.  These diffs are big enough that they should give
      the PG development team something to think about in the meantime :-)
      Also, I'm about to leave for 2 weeks' vacation, so I thought I'd get
      out what I have, which works (for the problems it tackles), now.
      
      With these changes, we can set up and run PostgreSQL with scripts the
      same way we can with apache or proftpd or mysql.
      
      In summary, this patch makes the following enhancements:
      
      1. Adds an environment variable PGUNIXSOCKET, analogous to MYSQL_UNIX_PORT,
         and command line options -k --unix-socket to the relevant programs.
      2. Adds a -h option to postmaster to set the hostname or IP address to
         listen on instead of the default INADDR_ANY.
      3. Extends some library interfaces to support the above.
      4. Fixes a few memory leaks in PQconnectdb().
      
      The default behavior is unchanged from stock 7.0.2; if you don't use
      any of these new features, they don't change the operation.
      
      David J. MacKenzie
      2150c2ed
  14. 24 Oct, 2000 1 commit
    • Tom Lane's avatar
      Major overhaul of large-object implementation, by Denis Perchine with · 4f44aa04
      Tom Lane authored
      kibitzing from Tom Lane.  Large objects are now all stored in a single
      system relation "pg_largeobject" --- no more xinv or xinx files, no more
      relkind 'l'.  This should offer substantial performance improvement for
      large numbers of LOs, since there won't be directory bloat anymore.
      It'll also fix problems like running out of locktable space when you
      access thousands of LOs in one transaction.
      Also clean up cruft in read/write routines.  LOs with "holes" in them
      (never-written byte ranges) now work just like Unix files with holes do:
      a hole reads as zeroes but doesn't occupy storage space.
      INITDB forced!
      4f44aa04
  15. 12 Oct, 2000 1 commit
  16. 05 Oct, 2000 1 commit
  17. 27 Sep, 2000 1 commit
  18. 29 Aug, 2000 1 commit
  19. 22 Jul, 2000 1 commit
  20. 21 Jul, 2000 1 commit
  21. 12 May, 2000 1 commit
  22. 09 May, 2000 1 commit
  23. 16 Apr, 2000 1 commit
  24. 27 Mar, 2000 1 commit
  25. 21 Mar, 2000 1 commit
  26. 11 Mar, 2000 1 commit
  27. 01 Mar, 2000 1 commit
  28. 20 Feb, 2000 1 commit
  29. 13 Feb, 2000 1 commit
  30. 10 Feb, 2000 1 commit
  31. 07 Feb, 2000 1 commit
  32. 29 Jan, 2000 1 commit
    • 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
  33. 18 Jan, 2000 1 commit
  34. 14 Jan, 2000 1 commit
  35. 12 Jan, 2000 1 commit
  36. 26 Nov, 1999 1 commit
    • 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
  37. 05 Nov, 1999 1 commit