1. 25 Mar, 1997 2 commits
    • Marc G. Fournier's avatar
      Here's two more diffs... · 6304e2c2
      Marc G. Fournier authored
      The first fixes a warning from gcc about the assignment within the condition.
      The extra set of parens should not make a difference, but with -Werror, they
      are necessary.
      
      The second fixes an "ln -s" invocation that assumes the current directory is
      implicitly the target if not specified.  Not true in all cases, and again, it
      should not make a difference except to those implementation that it does.
      
      From: "Michael P. Snyder" <msnyder@hawkeye.huntersmoon.com>
      6304e2c2
    • Marc G. Fournier's avatar
      - Renamed the variable names to something shorter, and I hope · ef56e51c
      Marc G. Fournier authored
          nicer. Also, I grabbed my copy of the Informix manual, and
          added a couple of variables that make sense (formats for
          money, time, a language setting, a timezone).
      
        - New functions SetPGVariable() and GetPGVariable() in tcop/*.
          These don't actually do anything for the moment, but should
          be enough to implement the SET var_name TO var_val in the
          parser?
      
          SetPGVariable() expects just two strings, the var_name and
          the var_value from above, and is expected to do the right thing.
          Returns TRUE if  everything okay.
      
      
      From: "Martin J. Laubach" <mjl@wwx.vip.at>
      ef56e51c
  2. 18 Mar, 1997 1 commit
    • Marc G. Fournier's avatar
      - Move most of the I/O in both libpq and the backend to a set · 812a6c2b
      Marc G. Fournier authored
          of common routines in pqcomprim.c (pq communication primitives).
          Not all adapted to it yet, but it's a start.
      
        - Rewritten some of those routines, to write/read bigger chunks of
          data, precomputing stuff in buffers instead of sending out byte
          by byte.
      
        - As a consequence, I need to know the endianness of the machine.
          Currently I rely on getting it from machine/endian.h, but this
          may not be available everywhere? (Who the hell thought it was
          a good idea to pass integers to the backend the other way around
          than the normal network byte order? *argl*)
      
        - Libpq looks in the environment for magic variables, and upon
          establishing a connection to the backend, sends it queries
          of the form "SET var_name TO 'var_value'". This needs a change
          in the backend parser (Mr. Parser, are you there? :)
      
        - Currently it looks for two Env-Vars, namely PG_DATEFORMAT
          and PG_FLOATFORMAT. What else makes sense? PG_TIMEFORMAT?
          PG_TIMEZONE?
      
      From: "Martin J. Laubach" <mjl@wwx.vip.at>
      812a6c2b
  3. 12 Mar, 1997 1 commit
    • Marc G. Fournier's avatar
      From: Dan McGuirk <mcguirk@indirect.com> · 3a7c93e7
      Marc G. Fournier authored
      Subject: [HACKERS] password authentication
      
      This patch adds support for plaintext password authentication.  To use
      it, you add a line like
      
      host         all         0.0.0.0       0.0.0.0           password  pg_pwd.conf
      
      
      to your pg_hba.conf, where 'pg_pwd.conf' is the name of a file containing
      the usernames and password hashes in the format of the first two fields
      of a Unix /etc/passwd file.  (Of course, you can use a specific database
      name or IP instead.)
      
      Then, to connect with a password through libpq, you use the PQconnectdb()
      function, specifying the "password=" tag in the connect string and also
      adding the tag "authtype=password".
      
      I also added a command-line switch '-u' to psql that tells it to prompt
      for a username and password and use password authentication.
      3a7c93e7
  4. 13 Feb, 1997 1 commit
  5. 28 Nov, 1996 1 commit
  6. 26 Nov, 1996 2 commits
  7. 14 Nov, 1996 1 commit
  8. 11 Nov, 1996 1 commit
    • Marc G. Fournier's avatar
      As proposed, · 41b8c2c8
      Marc G. Fournier authored
          following is the patch to libpq's large object interface that
          removes the requirement to  include  fmgr.h  into  fe-lobj.c.
          The  large object interface now ask's the backend to tell the
          OID's of all the required functions in pg_proc.
      
      From: wieck@sapserv.debis.de (Jan Wieck)
      41b8c2c8
  9. 10 Nov, 1996 2 commits
  10. 09 Nov, 1996 1 commit
  11. 04 Nov, 1996 1 commit
  12. 03 Nov, 1996 1 commit
  13. 29 Oct, 1996 1 commit
  14. 16 Oct, 1996 1 commit
  15. 15 Oct, 1996 1 commit
  16. 10 Oct, 1996 1 commit
  17. 19 Aug, 1996 2 commits
    • Marc G. Fournier's avatar
      Here's a minor fix that fixes a casting problem: · 0e9f4cea
      Marc G. Fournier authored
      -Kurt
      0e9f4cea
    • Marc G. Fournier's avatar
      Fixes: · 77e01653
      Marc G. Fournier authored
      When you connect to a database with PQsetdb, as with psql, depending on
      how your uninitialized variables are set, you can get a failure with a
      "There is no connection to the backend" message.
      
      The fix is to move a call to PQexec() from inside connectDB() to
      PQsetdb() after connectDB() returns to PQsetdb().  That way a connection
      doesn't have to be already established in order to establish it!
      
      
      From:  bryanh@giraffe.netgate.net (Bryan Henderson)
      77e01653
  18. 10 Aug, 1996 1 commit
  19. 06 Aug, 1996 1 commit
    • Marc G. Fournier's avatar
      Fixes for: · c4e53a14
      Marc G. Fournier authored
      Here are a few minor fixes to Postgres95.  Mostly I have added const
      to some of the char pointers.  There was also a missing header file
      and a place where it looks like "==" was used when "=" was meant.
      I also changed some variables from Pfin and Pfout tp pfin and pfout
      because the latter shadow global variables and that just seems like
      an unsafe practice which I like to avoid.
      
      Submitted by:  "D'Arcy J.M. Cain" <darcy@druid.druid.com>
      c4e53a14
  20. 23 Jul, 1996 1 commit
  21. 19 Jul, 1996 1 commit
  22. 12 Jul, 1996 1 commit
  23. 09 Jul, 1996 1 commit