1. 21 8月, 2002 2 次提交
  2. 20 8月, 2002 6 次提交
    • B
      This patch improves the behavior of FOUND in PL/PgSQL. In Oracle, · ebe1be13
      Bruce Momjian 提交于
      FOUND is set whenever a SELECT INTO returns > 0 rows, *or* when an
      INSERT, UPDATE, or DELETE affects > 0 rows. We implemented the first
      part of this behavior, but not the second.
      
      I also improved the documentation on the various situations in which
      FOUND can be set (excluding inside FOR loops, which I still need to
      think about), and added some regression tests for this behavior.
      
      Neil Conway
      ebe1be13
    • B
      - test for indexes on a domain · 50edd63b
      Bruce Momjian 提交于
      - don't fail type-sanity checks if a domain exists
      
      Rod Taylor
      50edd63b
    • B
      Allow pg_statistics to be reset by calling pg_stat_reset(). · 5243f9a9
      Bruce Momjian 提交于
      Christopher Kings-Lynne
      5243f9a9
    • B
      · de9801fc
      Bruce Momjian 提交于
      Add current_database().
      
      > Quick system function to pull out the current database.
      >
      > I've used this a number of times to allow stored procedures to find out
      > where they are.  Especially useful for those that do logging or hit a
      > remote server.
      >
      > It's called current_database() to match with current_user().
      
      It's also a necessity for an informational schema.  The catalog
      (database) name is required in a number of places.
      
      Rod Taylor
      de9801fc
    • B
      Removed code that is no longer used and has been commented out · f736fdb0
      Barry Lind 提交于
      for the last two releases.
      
       Modified Files:
       	jdbc/org/postgresql/Driver.java.in
       	jdbc/org/postgresql/PG_Stream.java
       Removed Files:
       	jdbc/org/postgresql/core/BytePoolDim1.java
       	jdbc/org/postgresql/core/BytePoolDim2.java
       	jdbc/org/postgresql/core/MemoryPool.java
       	jdbc/org/postgresql/core/ObjectPool.java
       	jdbc/org/postgresql/core/SimpleObjectPool.java
      f736fdb0
    • T
      Fix pg_dump to dump serial columns as serials. Per pghackers discussion, · a0bf1a7f
      Tom Lane 提交于
      cause SERIAL column declaration not to imply UNIQUE, so that this can be
      done without creating an extra index.
      a0bf1a7f
  3. 19 8月, 2002 7 次提交
  4. 18 8月, 2002 11 次提交
  5. 17 8月, 2002 14 次提交
    • B
      Reverse out XLogDir/-X write-ahead log handling, per discussion. · d04e9137
      Bruce Momjian 提交于
      Original patch from Thomas.
      d04e9137
    • B
      Add lock file. · fc68e440
      Bruce Momjian 提交于
      fc68e440
    • B
      In that case, attached is a patch which locates the beginning of the · 54124240
      Bruce Momjian 提交于
      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
    • B
      [ Newest version of patch applied.] · 82119a69
      Bruce Momjian 提交于
      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
    • B
      Add libpq connection timeout parameter. · f0ed4311
      Bruce Momjian 提交于
      Denis A Ustimenko
      f0ed4311
    • B
      What I have done for libpgtcl: · b7214a87
      Bruce Momjian 提交于
      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
    • B
      Improve documentation of trigger firing queue handling, cleanup. · b813554d
      Bruce Momjian 提交于
      Neil Conway
      b813554d
    • T
      Fix broken Makefiles. · cdfc54db
      Tom Lane 提交于
      cdfc54db
    • B
      Add files for pg_resetxlog. · 33e3c9b0
      Bruce Momjian 提交于
      33e3c9b0
    • B
      Move pg_controldata to /bin. · 6945ea34
      Bruce Momjian 提交于
      6945ea34
    • T
      Modify pg_dump to dump foreign-key constraints as constraints, not as · a208ea72
      Tom Lane 提交于
      sets of triggers.  Also modify psql \d command to show foreign key
      constraints as such and hide the triggers.  pg_get_constraintdef()
      function added to backend to support these.  From Rod Taylor, code
      review and some editorialization by Tom Lane.
      a208ea72
    • T
      Code review for patch to dump primary and unique constraints as · 8dabef83
      Tom Lane 提交于
      constraints, rather than as CREATE INDEX commands.
      8dabef83
    • T
      Make domain types indexable. Rod Taylor & Tom Lane. · ad7d3bdd
      Tom Lane 提交于
      ad7d3bdd
    • B
      Move pg_controldata from /contrib to src/bin. · cd1f4087
      Bruce Momjian 提交于
      cd1f4087