1. 05 Mar, 2002 12 commits
    • Bruce Momjian's avatar
      Here's a patch against 7.1.3 that fixes a problem with sending larger · 33766e68
      Bruce Momjian authored
      queries over non-blocking connections with libpq. "Larger" here
      basically means that it doesn't fit into the output buffer.
      
      The basic strategy is to fix pqFlush and pqPutBytes.
      
      The problem with pqFlush as it stands now is that it returns EOF when an
      error occurs or when not all data could be sent. The latter case is
      clearly not an error for a non-blocking connection but the caller can't
      distringuish it from an error very well.
      
      The first part of the fix is therefore to fix pqFlush. This is done by
      to renaming it to pqSendSome which only differs from pqFlush in its
      return values to allow the caller to make the above distinction and a
      new pqFlush which is implemented in terms of pqSendSome and behaves
      exactly like the old pqFlush.
      
      The second part of the fix modifies pqPutBytes to use pqSendSome instead
      of pqFlush and to either send all the data or if not all data can be
      sent on a non-blocking connection to at least put all data into the
      output buffer, enlarging it if necessary. The callers of pqPutBytes
      don't have to be changed because from their point of view pqPutBytes
      behaves like before. It either succeeds in queueing all output data or
      fails with an error.
      
      I've also added a new API function PQsendSome which analogously to
      PQflush just calls pqSendSome. Programs using non-blocking queries
      should use this new function. The main difference is that this function
      will have to be called repeatedly (calling select() properly in between)
      until all data has been written.
      
      AFAICT, the code in CVS HEAD hasn't changed with respect to non-blocking
      queries and this fix should work there, too, but I haven't tested that
      yet.
      
      Bernhard Herzog
      33766e68
    • Tom Lane's avatar
      Previous patch to mark UNION outputs with common typmod (if any) breaks · 94467182
      Tom Lane authored
      three-or-more-way UNIONs, as per example from Josh Berkus.  Cause is a
      fragile assumption that one tlist's entries will exactly match another.
      Restructure code to make that assumption a little less fragile.
      94467182
    • Dave Cramer's avatar
    • Dave Cramer's avatar
      patch from Zhenbang Wei · fe4e95f6
      Dave Cramer authored
      The errors_zh_TW.properties must be translated using native2ascii or it
      will raise an exception. Please replace the old file.
      fe4e95f6
    • Bruce Momjian's avatar
      Add: · bca7c57c
      Bruce Momjian authored
      > 	o allow replication over unreliable or non-persistent links
      bca7c57c
    • Dave Cramer's avatar
      Patch from Ryouichi Matsuda · 8f83590a
      Dave Cramer authored
       An attached patch corrects problem of this bug and fractional second.
      
      
       The handling of time zone was as follows:
      
         (a) with time zone
             using  SimpleDateFormat("yyyy-MM-dd HH:mm:ss z")
         (b) without time zone
             using  SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
      
      
       About problem of fractional second,
       Fractional second was changed from milli-second to nano-second
      8f83590a
    • Dave Cramer's avatar
      7aa6270f
    • Bruce Momjian's avatar
      Showing index details with \d on psql. · 925d60ee
      Bruce Momjian authored
      Greg Sabino Mullane
      925d60ee
    • Dave Cramer's avatar
    • Bruce Momjian's avatar
      Back out python patch: · fef790cc
      Bruce Momjian authored
      Elliot Lee wrote:
      > This patch to the python bindings adds C versions of the often-used
      query
      > args quoting routines, as well as support for quoting lists e.g.
      > dbc.execute("SELECT * FROM foo WHERE blah IN %s", ([1,2,3],))
      fef790cc
    • Bruce Momjian's avatar
      This patch to the python bindings adds C versions of the often-used · 14b05248
      Bruce Momjian authored
      query args quoting routines, as well as support for quoting lists e.g.
      dbc.execute("SELECT * FROM foo WHERE blah IN %s", ([1,2,3],))
      
      Elliot Lee
      14b05248
    • Bruce Momjian's avatar
      Add \timing patch to psql. Times all queries. · 25b0b09f
      Bruce Momjian authored
      Greg Sabino Mullane
      25b0b09f
  2. 04 Mar, 2002 12 commits
  3. 03 Mar, 2002 5 commits
  4. 02 Mar, 2002 5 commits
    • Tom Lane's avatar
    • Bruce Momjian's avatar
      Commit to match discussed elog() changes. Only update is that LOG is · a033daf5
      Bruce Momjian authored
      now just below FATAL in server_min_messages.  Added more text to
      highlight ordering difference between it and client_min_messages.
      
      ---------------------------------------------------------------------------
      
      REALLYFATAL => PANIC
      STOP => PANIC
      New INFO level the prints to client by default
      New LOG level the prints to server log by default
      Cause VACUUM information to print only to the client
      NOTICE => INFO where purely information messages are sent
      DEBUG => LOG for purely server status messages
      DEBUG removed, kept as backward compatible
      DEBUG5, DEBUG4, DEBUG3, DEBUG2, DEBUG1 added
      DebugLvl removed in favor of new DEBUG[1-5] symbols
      New server_min_messages GUC parameter with values:
              DEBUG[5-1], INFO, NOTICE, ERROR, LOG, FATAL, PANIC
      New client_min_messages GUC parameter with values:
              DEBUG[5-1], LOG, INFO, NOTICE, ERROR, FATAL, PANIC
      Server startup now logged with LOG instead of DEBUG
      Remove debug_level GUC parameter
      elog() numbers now start at 10
      Add test to print error message if older elog() values are passed to elog()
      Bootstrap mode now has a -d that requires an argument, like postmaster
      a033daf5
    • Tom Lane's avatar
      Add code to allow profiling of backends on Linux: save and restore the · 8d8aa931
      Tom Lane authored
      profiling timer setting across fork().  The correct way to build a
      profilable backend on Linux is now gmake PROFILE="-pg -DLINUX_PROFILE"
      8d8aa931
    • Tom Lane's avatar
      Don't bother to request SSL connection over a Unix socket, since the · 78ab8034
      Tom Lane authored
      postmaster won't accept the request anyway.  (If your kernel can't
      be trusted, SSL will not help you.)
      78ab8034
    • Tom Lane's avatar
      Array slice extraction should produce a result array with index lower · 608d843e
      Tom Lane authored
      bounds of 1, not the lower bound subscripts of the original slice.
      Per bug report from Andre Holzner, 1-Feb-02.
      608d843e
  5. 01 Mar, 2002 6 commits