1. 31 7月, 2002 11 次提交
    • B
      Done: · 620abeb2
      Bruce Momjian 提交于
      > 	o -Generate failure on short COPY lines rather than pad NULLs
      620abeb2
    • B
      The attached patch removes the last remnants of support for · 6e989304
      Bruce Momjian 提交于
      'tioga recipes', whatever those are -- Peter E. killed most
      of it a couple days ago, but this patch removes the rest. Most
      of it was #ifdef'ed out anyway.
      
      Neil Conway
      6e989304
    • B
      IMPROVED VERSION APPLIED: · 874148fe
      Bruce Momjian 提交于
      The attached patch completes the following TODO item:
      
          * Generate failure on short COPY lines rather than pad NULLs
      
      I also restructed a lot of the existing COPY code, did some code
      review on the column list patch sent in by Brent Verner a little
      while ago, and added some regression tests. I also added an
      explicit check (and resultant error) for extra data before
      the end-of-line.
      
      Neil Conway
      874148fe
    • B
    • B
      Added support for schemas and quotes in tab-complete.c, as well as · 210e64fe
      Bruce Momjian 提交于
      a few other things:
      
      * Made all references to the pg_* tables absolute, by specifying
        the pg_catalog schema.
      
      * Added SCHEMA as a create/delete completion option.
      
      * Added SCHEMA completion as: SELECT nspname FROM
      pg_catalog.pg_namespace
        WHERE substr(nspname,1,%d)='%s'
      
      * Added completion of "INSERT INTO <table> (" with attribute names.
      
      * Added completion of "INSERT INTO <table> (attribs)" with
        VALUES or SELECT
      
      * Added limited locking completion: only for one table:
        "LOCK" and "LOCK TABLE" now both get a completion list of tables
        Complete with "IN" for LOCK [TABLE] <table>
        Complete LOCK [TABLE] <table> IN with a lock mode
      
      * Added a very simple WHERE finisher that uses the previous word
        as a table lookup for attributes.
      
      * Added quote support when parsing "previous words". In other words,
        hitting tab after INSERT INTO "foo bar baby"
        now does the right thing and recognizes "foo bar baby" as one word.
      
      Letting tab-complete quote things that should be quoted seems to be
      temporarily ifdef'ed out due to readline compatibility problems.
      Can anyone elaborate on this?
      
      Greg Sabino Mullane
      210e64fe
    • B
      This should fix a bug where a row that was updated or · 578e71fe
      Bruce Momjian 提交于
      deleted that had another row inserted/updated to its old
      value during the same statement or other statements before the
      integrity check for noaction would incorrectly error.  This
      could happen in deferred constraints or due to triggers or
      functions. It's effectively a reworking of the previous patch that
      did a not exists to instead do a separate check.
      
      Stephan Szabo
      578e71fe
    • T
      Since we're depending on %option noyywrap in the main scanner now, · 9f1fc108
      Tom Lane 提交于
      we may as well use it in all our flex files.  Make all the flex files
      have a consistent set of options.
      9f1fc108
    • B
      Add tablefunc to contrib makefile. · 74780590
      Bruce Momjian 提交于
      74780590
    • B
      As mentioned above, here is my contrib/tablefunc patch. It includes · 41f862ba
      Bruce Momjian 提交于
      three functions which exercise the tablefunc API.
      
      show_all_settings()
         - returns the same information as SHOW ALL, but as a query result
      
      normal_rand(int numvals, float8 mean, float8 stddev, int seed)
         - returns a set of normally distributed float8 values
         - This routine implements Algorithm P (Polar method for normal
           deviates) from Knuth's _The_Art_of_Computer_Programming_, Volume 2,
           3rd ed., pages 122-126. Knuth cites his source as "The polar
           method", G. E. P. Box, M. E. Muller, and G. Marsaglia,
           _Annals_Math,_Stat._ 29 (1958), 610-611.
      
      crosstabN(text sql)
         - returns a set of row_name plus N category value columns
         - crosstab2(), crosstab3(), and crosstab4() are defined for you,
           but you can create additional crosstab functions per directions
           in the README.
      
      Joe Conway
      41f862ba
    • B
      Here are two patches. The guc_and_tablefunc patch addresses the two · 23a8b77d
      Bruce Momjian 提交于
      changes mentioned above, and also adds a new function to the tablefunc
      API. The tablefunc API change adds the following function:
      
      * Oid foidGetTypeId(Oid foid) - Get a function's typeid given the
      * function Oid. Use this together with TypeGetTupleDesc() to get a
      * TupleDesc which is derived from the function's declared return type.
      
      In the next post I'll send the contrib/tablefunc patch, which
      illustrates the usage of this new function. Also attached is a doc patch
      for this change. The doc patch also adds a function that I failed to
      document previously.
      
      Joe Conway
      23a8b77d
    • B
      This patch fixes one serious bug (runaway INSERT) and a few rare (and · ceb438ed
      Bruce Momjian 提交于
      hard to reproduce) error conditions.
      
      Manfred Koizar
      ceb438ed
  2. 30 7月, 2002 18 次提交
  3. 29 7月, 2002 1 次提交
  4. 28 7月, 2002 3 次提交
  5. 26 7月, 2002 4 次提交
    • H
      Fix a bug about the handling of CX parameter of the connection string · c3fdf892
      Hiroshi Inoue 提交于
      reported by Sergey Smirnov.
      c3fdf892
    • B
      Fouth (and final) phase of restructuring to add jdbc3 support. · 40c44166
      Barry Lind 提交于
       Modified Files:
       	jdbc/org/postgresql/Driver.java.in
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
       	jdbc/org/postgresql/jdbc1/Jdbc1Connection.java
       	jdbc/org/postgresql/jdbc1/Jdbc1ResultSet.java
       	jdbc/org/postgresql/jdbc2/Jdbc2Connection.java
       	jdbc/org/postgresql/jdbc2/Jdbc2ResultSet.java
       Added Files:
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSetMetaData.java
       	jdbc/org/postgresql/jdbc1/Jdbc1DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc1/Jdbc1ResultSetMetaData.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSetMetaData.java
       	jdbc/org/postgresql/jdbc2/Jdbc2DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc2/Jdbc2ResultSetMetaData.java
       Removed Files:
       	jdbc/org/postgresql/jdbc1/DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc1/ResultSetMetaData.java
       	jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc2/ResultSetMetaData.java
      40c44166
    • B
      Third phase of restructuring to add jdbc3 support. · 68c6eff9
      Barry Lind 提交于
       Modified Files:
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
       	jdbc/org/postgresql/jdbc1/DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc1/Jdbc1Connection.java
       	jdbc/org/postgresql/jdbc1/Jdbc1ResultSet.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
       	jdbc/org/postgresql/jdbc2/Array.java
       	jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc2/Jdbc2Connection.java
       	jdbc/org/postgresql/jdbc2/Jdbc2ResultSet.java
       Added Files:
       	jdbc/org/postgresql/jdbc1/Jdbc1CallableStatement.java
       	jdbc/org/postgresql/jdbc2/Jdbc2CallableStatement.java
       Removed Files:
       	jdbc/org/postgresql/jdbc1/CallableStatement.java
       	jdbc/org/postgresql/jdbc2/CallableStatement.java
       	jdbc/org/postgresql/jdbc2/UpdateableResultSet.java
      68c6eff9
    • P
      Remove extra comma. · 73eb2dfe
      Peter Eisentraut 提交于
      73eb2dfe
  6. 25 7月, 2002 3 次提交