1. 17 Aug, 2002 14 commits
    • Bruce Momjian's avatar
      Add lock file. · fc68e440
      Bruce Momjian authored
      fc68e440
    • Bruce Momjian's avatar
      In that case, attached is a patch which locates the beginning of the · 54124240
      Bruce Momjian authored
      offending token more efficiently (per your suggestion of using
      scanbuf). The new patch does the same as before:
      
      template1=# select * frum pg_class;
      ERROR:  parser: parse error at or near "frum" at character 10
      
      It also implement's Tom's suggestion:
      
      template1=# select * from pg_class where\g
      ERROR:  parse: parse error at end of input
      
      Gavin Sherry
      54124240
    • Bruce Momjian's avatar
      [ Newest version of patch applied.] · 82119a69
      Bruce Momjian authored
      This patch is an updated version of the lock listing patch. I've made
      the following changes:
      
          - write documentation
          - wrap the SRF in a view called 'pg_locks': all user-level
            access should be done through this view
          - re-diff against latest CVS
      
      One thing I chose not to do is adapt the SRF to use the anonymous
      composite type code from Joe Conway. I'll probably do that eventually,
      but I'm not really convinced it's a significantly cleaner way to
      bootstrap SRF builtins than the method this patch uses (of course, it
      has other uses...)
      
      Neil Conway
      82119a69
    • 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 9 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