1. 17 Aug, 2002 11 commits
    • Bruce Momjian's avatar
      Add libpq connection timeout parameter. · f0ed4311
      Bruce Momjian authored
      Denis A Ustimenko
      f0ed4311
    • Bruce Momjian's avatar
      What I have done for libpgtcl: · b7214a87
      Bruce Momjian authored
      Everytime if I do PQconsumeInput (when the backend channel gets
      readable) I check for the return value. (0 == error) and generate a
      notification manually, e.g. fixed string connection_closed) and pass it to the
      TCL event queue. The only other thing I had to do is to comment out removing
      all pending events in PgStopNotifyEventSource whenever the connection was
      unexpectedly closed (so the manually generated event will not be deleted).
      
      A broken backend connection triggers a notify event to the client (fixed
      notification string "connection_closed") so proper action can be taken to switch
      to another database server etc. Remember that this is event driven. If you have
      applications, that have idle database connections most of the time, you'll get
      immediate feedback of a dying server. Upon connection to the server issue a
      pg_notify for notify event "connection_closed" and whenever the backend crashes
      (which it does do in very very rare cases) you get an event driven recovery. (of
      course the Tcl-Event loop has to be processed). Issuing a notification
      "connection_closed" on a still working database could be used for switching to
      another db-server (which I've actually impelemented right now).
      
      Gerhard Hintermayer
      b7214a87
    • Bruce Momjian's avatar
      b813554d
    • Tom Lane's avatar
      Editorial corrections. · 2132ac89
      Tom Lane authored
      2132ac89
    • Tom Lane's avatar
      Broken markup. · 8bca70fa
      Tom Lane authored
      8bca70fa
    • Tom Lane's avatar
      Cleanup. · 675a7b82
      Tom Lane authored
      675a7b82
    • Tom Lane's avatar
      Fix broken Makefiles. · cdfc54db
      Tom Lane authored
      cdfc54db
    • Tom Lane's avatar
      Add missing links. · d383b734
      Tom Lane authored
      d383b734
    • Bruce Momjian's avatar
      Add doc file for pg_resetxlog. · 08f245bf
      Bruce Momjian authored
      08f245bf
    • Bruce Momjian's avatar
      Add files for pg_resetxlog. · 33e3c9b0
      Bruce Momjian authored
      33e3c9b0
    • Bruce Momjian's avatar
      Move pg_controldata to /bin. · 6945ea34
      Bruce Momjian authored
      6945ea34
  2. 16 Aug, 2002 17 commits
  3. 15 Aug, 2002 12 commits
    • Bruce Momjian's avatar
      Done: · 52f8c56a
      Bruce Momjian authored
      > 	o -Prevent loss of indexes, permissions, inheritance
      52f8c56a
    • Bruce Momjian's avatar
      Done: · ea1954fc
      Bruce Momjian authored
      > * -Improve control over user privileges, including table creation
      > * -Add PGPASSWORDFILE environment variable or ~/.pgpass to store
      > 	o -Compile under jdk 1.4
      ea1954fc
    • Bruce Momjian's avatar
      Tom Lane wrote: · b1a5f872
      Bruce Momjian authored
      > There's no longer a separate call to heap_storage_create in that routine
      > --- the right place to make the test is now in the storage_create
      > boolean parameter being passed to heap_create.  A simple change, but
      > it passeth patch's understanding ...
      
      Thanks.
      
      Attached is a patch against cvs tip as of 8:30 PM PST or so. Turned out
      that even after fixing the failed hunks, there was a new spot in
      bufmgr.c which needed to be fixed (related to temp relations;
      RelationUpdateNumberOfBlocks). But thankfully the regression test code
      caught it :-)
      
      Joe Conway
      b1a5f872
    • Bruce Momjian's avatar
      38294db6
    • Bruce Momjian's avatar
      This fixes some text as well as enforces the use of "drop table cascade" · 1991fe74
      Bruce Momjian authored
      since we moved from an implicate to explicate implementation.
      
      
      Greg Copeland
      1991fe74
    • Bruce Momjian's avatar
      Well, that certainly appeared to be very straight forward. pg.py and · 4f1ac055
      Bruce Momjian authored
      syscat.py scripts were both modified.  pg.py uses it to cache a list of
      pks (which is seemingly does for every db connection) and various
      attributes.  syscat uses it to walk the list of system tables and
      queries the various attributes from these tables.
      
      In both cases, it seemingly makes sense to apply what you've requested.
      
      Greg Copeland
      4f1ac055
    • Bruce Momjian's avatar
      http://archives.postgresql.org/pgsql-bugs/2002-06/msg00086.php and never · 147aa84c
      Bruce Momjian authored
      saw a fix offered up.  Since I'm gearing up to use Postgres and Python
      soon, I figured I'd have a hand at trying to get this sucker addressed.
      Apologies if this has already been plugged.  I looked in the archives
      and never saw a response.
      
      At any rate, I must admit I don't think I fully understand the
      implications of some of the changes I made even though they appear to be
      straight forward.  We all know the devil is in the details.  Anyone more
      knowledgeable is requested to review my changes. :(
      
      I also updated the advanced.py script in a somewhat nonsensical fashion
      to make use of an int8 field in an effort to test this change.  It seems
      to run okay, however, this is by no means an all exhaustive test.  So,
      it's possible that a bumpy road may lay ahead for some.  On the other
      hand...overflows (hopefully) previously lurked (long -> int conversion).
      
      Greg Copeland
      147aa84c
    • Bruce Momjian's avatar
      Backed out. It is part of a later patch. · db147006
      Bruce Momjian authored
      db147006
    • Bruce Momjian's avatar
      August 13, 2002 · 2860041b
      Bruce Momjian authored
               Use parser of OpenFTS v0.33.
      
      --
      Teodor Sigaev
      2860041b
    • Bruce Momjian's avatar
      PostgreSQL 7.2.1 Documentation · 12763562
      Bruce Momjian authored
      Chapter 1. libpq - C Library
      1.3. Command Execution Functions
      1.3.3. Escaping binary strings for inclusion in SQL queries
      
      I found the line
      "The result string length does not include the terminating zero byte of the result."
      is not right.
      The result string length does indeed include the terminating zero byte.
      
      Christoph Haller
      12763562
    • Bruce Momjian's avatar
      > Neil Conway <nconway@klamath.dyndns.org> writes: · 88bd3068
      Bruce Momjian authored
      > > This patch improves the documentation of the UPDATE and ALTER TABLE
      > > commands to elaborate on the effect of specifying an "ONLY" clause.
      >
      > Unfortunately this is still only half the truth ... see the
      > SQL_INHERITANCE configuration variable.
      
      Okay, I've attached an updated patch with more information on
      SQL_INHERITANCE and inheritance behavior in prior releases.
      
      Neil Conway
      88bd3068
    • Bruce Momjian's avatar
      The attached patch changes most of the usages of sprintf() to · 66eb8df6
      Bruce Momjian authored
      snprintf() in contrib/. I didn't touch the places where pointer
      arithmatic was being used, or other areas where the fix wasn't
      trivial. I would think that few, if any, of the usages of sprintf()
      were actually exploitable, but it's probably better to be paranoid...
      
      Neil Conway
      66eb8df6