1. 12 Jan, 1999 1 commit
    • Marc G. Fournier's avatar
      · d8b96ade
      Marc G. Fournier authored
      From: Magnus Hagander <mha@sollentuna.net>
      
      Here's another patch for the libpq backend areas. This patch removes all
      usage of "FILE *" on the communications channel. It also cleans up the
      comments and headers in the pqcomm.c file - a lot of things were either
      missing or incorrect. Finally, it removes a couple of unused functions
      (leftovers from the time of shared code between the libpq backend and
      frontend).
      d8b96ade
  2. 01 Sep, 1998 1 commit
  3. 29 Aug, 1998 1 commit
    • Bruce Momjian's avatar
      Hello! · a060d5be
      Bruce Momjian authored
      Here is a new patch for libpq, to make it work on Win32 again (since
      the latest modifications broke it a little).
      
      Please also add the file "libpq.rc" to the interfaces/libpq directory.
      This will allow version-stamping of the generated DLL file, so that
      automatic install programs (and interested users) can determine
      the version of the file.  The file is currently set as "prerelease".
      Before the release, somebody should change the line "FILEFLAGS
      VS_FF_PRERELEASE" to "FILEFLAGS 0".  That information should probably
      go into toos\RELEASE_CHANGES.
      
      The patch is against the cvs as of ~ 1998-08-26 14:30 CEST.
      
      
      //Magnus
      a060d5be
  4. 22 Aug, 1998 1 commit
    • Bruce Momjian's avatar
      · a738478a
      Bruce Momjian authored
      Here are additional patches for the UnixWare 7 port.
      
      Summary of changes:
      
      In pqcomm.h, use the SUN_LEN macro if it is defined to calculate
      the size of the sockaddr_un structure.
      
      In unixware.h, drop the use of the UNIXWARE macro.  Everything can
      be handled with the USE_UNIVEL_CC and DISABLE_COMPLEX_MACRO macros.
      
      In s_lock.h, remove the reference to the UNIXWARE macro (see above).
      
      In the unixware template, add the YFLAGS:-d line.
      
      In various makefile templates, add (or cleanup) unixware and univel
      port specific information.
      
      -- Billy G. Allie
      a738478a
  5. 09 Jul, 1998 1 commit
    • Marc G. Fournier's avatar
      · a0659e3e
      Marc G. Fournier authored
      From: Tom Lane <tgl@sss.pgh.pa.us>
      
      Making PQrequestCancel safe to call in a signal handler turned out to be
      much easier than I feared.  So here are the diffs.
      
      Some notes:
        * I modified the postmaster's packet "iodone" callback interface to allow
          the callback routine to return a continue-or-drop-connection return
          code; this was necessary to allow the connection to be closed after
          receiving a Cancel, rather than proceeding to launch a new backend...
          Being a neatnik, I also made the iodone proc have a typechecked
          parameter list.
        * I deleted all code I could find that had to do with OOB.
        * I made some edits to ensure that all signals mentioned in the code
          are referred to symbolically not by numbers ("SIGUSR2" not "2").
          I think Bruce may have already done at least some of the same edits;
          I hope that merging these patches is not too painful.
      a0659e3e
  6. 06 May, 1998 1 commit
    • Bruce Momjian's avatar
      What I've done: · edbd5139
      Bruce Momjian authored
      1. Rewritten libpq to allow asynchronous clients.
      
      2. Implemented client side of cancel protocol in library,
         and patched psql.c to send a cancel request upon SIGINT.  The
         backend doesn't notice it yet :-(
      
      3. Implemented 'Z' protocol message addition and renaming of
         copy in/out start messages.  These are implemented conditionally,
         ie, the client protocol version is checked; so the code should
         still work with 1.0 clients.
      
      4. Revised protocol and libpq sgml documents (don't have an SGML
         compiler, though, so there may be some markup glitches here).
      
      
      What remains to be done:
      
      1. Implement addition of atttypmod field to RowDescriptor messages.
         The client-side code is there but ifdef'd out.  I have no idea
         what to change on the backend side.  The field should be sent
         only if protocol >= 2.0, of course.
      
      2. Implement backend response to cancel requests received as OOB
         messages.  (This prolly need not be conditional on protocol
         version; just do it if you get SIGURG.)
      
      3. Update libpq.3.  (I'm hoping this can be generated mechanically
         from libpq.sgml... if not, will do it by hand.)  Is there any
         other doco to fix?
      
      4. Update non-libpq interfaces as necessary.  I patched libpgtcl
         so that it would compile, but haven't tested it.  Dunno what
         needs to be done with the other interfaces.
      
      Have at it!
      
      Tom Lane
      edbd5139
  7. 02 Mar, 1998 1 commit
  8. 26 Feb, 1998 1 commit
  9. 28 Jan, 1998 1 commit
  10. 27 Jan, 1998 2 commits
  11. 26 Jan, 1998 1 commit
    • Marc G. Fournier's avatar
      From: Phil Thompson <phil@river-bank.demon.co.uk> · d5bbe2ac
      Marc G. Fournier authored
      I've completed the patch to fix the protocol and authentication issues I
      was discussing a couple of weeks ago.  The particular changes are:
      
      - the protocol has a version number
      - network byte order is used throughout
      - the pg_hba.conf file is used to specify what method is used to
        authenticate a frontend (either password, ident, trust, reject, krb4
        or krb5)
      - support for multiplexed backends is removed
      - appropriate changes to man pages
      - the -a switch to many programs to specify an authentication service
        no longer has any effect
      - the libpq.so version number has changed to 1.1
      
      The new backend still supports the old protocol so old interfaces won't
      break.
      d5bbe2ac
  12. 24 Jan, 1998 1 commit
  13. 04 Dec, 1997 1 commit
  14. 07 Nov, 1997 1 commit
  15. 12 Sep, 1997 1 commit
  16. 08 Sep, 1997 3 commits
  17. 07 Sep, 1997 1 commit
  18. 20 Mar, 1997 1 commit
    • Marc G. Fournier's avatar
      From: "D'Arcy J.M. Cain" <darcy@druid.net> · bf872f0a
      Marc G. Fournier authored
      Subject: [HACKERS] libpq/pqcomm stuff and Solaris byte order
      
      I decided to go ahead with the required changes since no one else seems
      to.  I don't guarantee that it is perfect but with these changes the
      package actually compiles.  While I was at it I added to the Sparc
      Solaris header to define the byte order.  Note that NetBSD sets this
      in the system headers so it wasn't required there.
      
      In particular, someone may want to check whether I removed the correct
      84 lines from backend/libpq/pqcomprim.c.
      bf872f0a
  19. 16 Mar, 1997 1 commit
    • Marc G. Fournier's avatar
      om: "Martin J. Laubach" <mjl@CSlab.tuwien.ac.at> · ea58f28e
      Marc G. Fournier authored
      Subject: [HACKERS] Patch for io routines
      
        I am currently trying to improve on the front-backend communication
      routines; and noticed that lots of code are duplicated for libpq and
      the backend. This is a first patch that tries to share code between
      the two, more to follow.
      
              mjl
      ea58f28e
  20. 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
  21. 11 Feb, 1997 1 commit
  22. 26 Dec, 1996 1 commit
  23. 05 Nov, 1996 1 commit
  24. 31 Oct, 1996 1 commit
  25. 23 Oct, 1996 1 commit
  26. 11 Oct, 1996 1 commit
  27. 28 Aug, 1996 1 commit
  28. 09 Jul, 1996 1 commit