1. 19 11月, 2005 4 次提交
    • T
      Change array_push and array_cat so that they retain the lower bound of · 1e9a1a70
      Tom Lane 提交于
      the array (for array_push) or higher-dimensional array (for array_cat)
      rather than decrementing it as before.  This avoids generating lower
      bounds other than one for any array operation within the SQL spec.  Per
      recent discussion.
      Interestingly, this seems to have been the original behavior, because
      while updating the docs I noticed that a large fraction of relevant
      examples were *wrong* for the old behavior and are now right.  Is it
      worth correcting this in the back-branch docs?
      1e9a1a70
    • T
      Fix performance issue in exprTypmod(): for a COALESCE expression, it · 8685c472
      Tom Lane 提交于
      recursed twice on its first argument, leading to exponential time spent
      on a deep nest of COALESCEs ... such as a deeply nested FULL JOIN would
      produce.  Per report from Matt Carter.
      8685c472
    • A
      · b4104756
      Andrew Dunstan 提交于
      translate undef to NULL for result arrayref, now that we allow NULLs in arrays. Update plperl regression test accordingly.
      b4104756
    • A
      Add tab completion for RESET SESSION AUTHORIZATION. · 33e9f2c3
      Alvaro Herrera 提交于
      33e9f2c3
  2. 18 11月, 2005 6 次提交
  3. 17 11月, 2005 3 次提交
    • B
      Update, add mention of user locking table before MERGE: · 84bb3876
      Bruce Momjian 提交于
      <   so duplicate checking can be easily performed.
      >   so duplicate checking can be easily performed.  It is possible to
      >   do it without a unique index if we require the user to LOCK the table
      >   before the MERGE.
      84bb3876
    • T
      make_restrictinfo() failed to attach the specified required_relids to · ccdcd196
      Tom Lane 提交于
      its result when the clause was an OR clause.  Brain fade exposed by
      example from Sebastian BÎck.
      ccdcd196
    • B
      Add batch mode, make new libpq section: · 01798a06
      Bruce Momjian 提交于
      < * Add a libpq function to support Parse/DescribeStatement capability
      < * Add PQescapeIdentifier() to libpq
      < * Prevent PQfnumber() from lowercasing unquoted the column name
      <
      <   PQfnumber() should never have been doing lowercasing, but historically
      <   it has so we need a way to prevent it
      <
      648a642,661
      >
      >
      > libpq
      >
      > 	o Add a function to support Parse/DescribeStatement capability
      > 	o Add PQescapeIdentifier()
      > 	o Prevent PQfnumber() from lowercasing unquoted the column name
      >
      > 	  PQfnumber() should never have been doing lowercasing, but
      > 	  historically it has so we need a way to prevent it
      >
      > 	o Allow query results to be automatically batched to the client
      >
      > 	  Currently, all query results are transfered to the libpq
      > 	  client before libpq makes the results available to the
      > 	  application.  This feature would allow the application to make
      > 	  use of the first result rows while the rest are transfered, or
      > 	  held on the server waiting for them to be requested by libpq.
      > 	  One complexity is that a query like SELECT 1/col could error
      > 	  out mid-way through the result set.
      01798a06
  4. 16 11月, 2005 6 次提交
  5. 15 11月, 2005 7 次提交
  6. 14 11月, 2005 3 次提交
  7. 13 11月, 2005 1 次提交
  8. 10 11月, 2005 3 次提交
    • A
      · f9db22e8
      Andrew Dunstan 提交于
      add missing quote mark to ident_file sample line - per Hiroshi Saito
      f9db22e8
    • T
      When in transaction-aborted state, reject Bind message for portals containing · da4e00bf
      Tom Lane 提交于
      anything but transaction-exiting commands (ROLLBACK etc).  We already rejected
      Parse and Execute in such cases, so there seems little point in allowing Bind.
      This prevents at least an Assert failure, and probably worse things, since
      there's a lot of infrastructure that doesn't work when not in a live
      transaction.  We can also simplify the Bind logic a bit by rejecting messages
      with a nonzero number of parameters, instead of the former kluge to silently
      substitute NULL for each parameter.  Per bug #2033 from Joel Stevenson.
      da4e00bf
    • T
      Fix misspelling of 'listen_addresses', per Devrim. · 0dd92d56
      Tom Lane 提交于
      0dd92d56
  9. 09 11月, 2005 2 次提交
    • T
      Fix rwrite(ARRAY) on 64-bit boxes: · 134bed80
      Teodor Sigaev 提交于
      Instead of getting elements of array manually call deconstruct_array
      134bed80
    • T
      New features for tsearch2: · 0645663e
      Teodor Sigaev 提交于
      1 Comparison operation for tsquery
      2 Btree index on tsquery
      3 numnode(tsquery) - returns 'length' of tsquery
      4 tsquery @ tsquery, tsquery ~ tsquery - contains, contained for tsquery.
        Note: They don't gurantee exact result, only MAY BE, so it
        useful only for speed up rewrite functions
      5 GiST index support for @,~
      6 rewrite():
              select rewrite(orig, what, to);
              select rewrite(ARRAY[orig, what, to]) from tsquery_table;
              select rewrite(orig, 'select what, to from tsquery_table;');
      7 significantly improve cover algorithm
      0645663e
  10. 08 11月, 2005 3 次提交
  11. 07 11月, 2005 2 次提交