1. 14 Jan, 2000 1 commit
  2. 30 Nov, 1999 1 commit
    • Bruce Momjian's avatar
      This patch (against the current CVS sources) adds to libpq the functions · 3ab5b1f1
      Bruce Momjian authored
      PQconnectStart
      PQconnectPoll
      PQresetStart
      PQresetPoll
      PQsetenvStart
      PQsetenvPoll
      PQsetenvAbort
      
      and brings into the published interface
      
      PQsetenv.
      
      The first four are asynchronous analogues of PQconnectdb and PQreset -
      they allow an application to connect to the DB without blocking on
      remote I/O.
      
      The PQsetenv functions perform an environment negotiation with the
      server.
      
      Internal to libpq, pqReadReady and pqWriteReady have been made available
      across the library (they were previously static functions inside
      fe-misc.c).  A lot of internal rearrangement has been necessary to
      support these changes.
      
      The API documentation has been updated also.
      
      Caveats:
      
        o  The Windows code does not default to using non-blocking sockets,
      since I have no documentation: Define WIN32_NON_BLOCKING_CONNECTIONS to
      do that.
      
        o  The SSL code still blocks.
      
      
      Ewan Mellor.
      3ab5b1f1
  3. 11 Nov, 1999 1 commit
    • Bruce Momjian's avatar
      In the spirit of TODO item · 2a24ec6f
      Bruce Momjian authored
      * Add use of 'const' for varibles in source tree
      (which is misspelled, btw.)
      I went through the front-end libpq code and did so. This affects in
      particular the various accessor functions (such as PQdb() and
      PQgetvalue()) as well as, by necessity, the internal helpers they use.
      
      I have been really thorough in that regard, perhaps some people will find
      it annoying that things like
      char * foo = PQgetvalue(res, 0, 0)
      will generate a warning. On the other hand it _should_ generate one. This
      is no real compatibility break, although a few clients will have to be
      fixed to suppress warnings. (Which again would be in the spirit of the
      above TODO.)
      
      In addition I replaced some int's by size_t's and removed some warnings
      (and generated some new ones -- grmpf!). Also I rewrote PQoidStatus (so it
      actually honors the const!) and supplied a new function PQoidValue that
      returns a proper Oid type. This is only front-end stuff, none of the
      communicaton stuff was touched.
      
      
      The psql patch also adds some new consts to honor the new libpq situation,
      as well as fixes a fatal condition that resulted when using the -V
      (--version) option and there is no database listening.
      
      
      So, to summarize, the psql you should definitely put in (with or without
      the libpq). If you think I went too far with the const-mania in libpq, let
      me know and I'll make adjustments. If you approve it, I will also update
      the docs.
      
              -Peter
      
      --
      Peter Eisentraut                  Sernanders vaeg 10:115
      2a24ec6f
  4. 27 Sep, 1999 1 commit
    • Bruce Momjian's avatar
      Lots of patches coming in from me today :-) · e0e7daef
      Bruce Momjian authored
      When drawing up a very simple "text-drawing" of how the negotiation is done,
      I realised I had done this last part (fallback) in a very stupid way. Patch
      #4 fixes this, and does it in a much better way.
      
      Included is also the simple text-drawing of how the negotiation is done.
      
      //Magnus
      e0e7daef
  5. 31 Aug, 1999 1 commit
    • Tom Lane's avatar
      Update frontend libpq to remove limits on query lengths, · ab5cafa5
      Tom Lane authored
      error/notice message lengths, and number of fields per tuple.  Add
      pqexpbuffer.c/.h, a frontend version of backend's stringinfo module.
      This is first step in applying Mike Ansley's long-query patches,
      even though he didn't do any of these particular changes...
      ab5cafa5
  6. 13 Jul, 1999 1 commit
  7. 25 May, 1999 2 commits
  8. 03 May, 1999 1 commit
    • Bruce Momjian's avatar
      here are some patches for 6.5.0 which I already submitted but have never · 210055ad
      Bruce Momjian authored
      been applied. The patches are in the .tar.gz attachment at the end:
      
      varchar-array.patch     this patch adds support for arrays of bpchar() and
                              varchar(), which where always missing from postgres.
      
                              These datatypes can be used to replace the _char4,
                              _char8, etc., which were dropped some time ago.
      
      block-size.patch        this patch fixes many errors in the parser and other
                              program which happen with very large query statements
                              (> 8K) when using a page size larger than 8192.
      
                              This patch is needed if you want to submit queries
                              larger than 8K. Postgres supports tuples up to 32K
                              but you can't insert them because you can't submit
                              queries larger than 8K. My patch fixes this problem.
      
                              The patch also replaces all the occurrences of `8192'
                              and `1<<13' in the sources with the proper constants
                              defined in include files. You should now never find
                              8192 hardwired in C code, just to make code clearer.
      
      
      --
      Massimo Dal Zotto
      210055ad
  9. 13 Feb, 1999 1 commit
  10. 18 Nov, 1998 1 commit
  11. 01 Oct, 1998 1 commit
  12. 03 Sep, 1998 1 commit
    • Bruce Momjian's avatar
      Attached is a patch to remove the definitions of libpq's internal · f71d0cf6
      Bruce Momjian authored
      structs from libpq-fe.h, as we previously discussed.
      
      There turned out to be sloppy coding practices in more places than
      I had realized :-(, but all in all I think it was a well-worth-while
      exercise.
      
      I ended up adding several routines to libpq's API in order to respond
      to application requirements that were exposed by this work.  I owe the
      docs crew updates for libpq.sgml to describe these changes.  I'm way too
      tired to work on the docs tonight, however.
      
      This is the last major change I intend to submit for 6.4.  I do want
      to see if I can make libpgtcl work with Tcl 8.0 before we go final,
      but hopefully that will be a minor bug fix.
      f71d0cf6
  13. 01 Sep, 1998 1 commit
  14. 17 Aug, 1998 1 commit
    • Marc G. Fournier's avatar
      · cf9ecbda
      Marc G. Fournier authored
      Just a couple of "after-commit" cleanups...
      cf9ecbda