1. 19 2月, 2006 2 次提交
    • N
      Add TABLESPACE and ON COMMIT clauses to CREATE TABLE AS. ON COMMIT is · 85c0eac1
      Neil Conway 提交于
      required by the SQL standard, and TABLESPACE is useful functionality.
      Patch from Kris Jurka, minor editorialization by Neil Conway.
      85c0eac1
    • P
      Add support for Windows codepages 1253, 1254, 1255, and 1257 and clean · 1b658473
      Peter Eisentraut 提交于
      up a bunch of the support utilities.
      
      In src/backend/utils/mb/Unicode remove nearly duplicate copies of the
      UCS_to_XXX perl script and replace with one version to handle all generic
      files.  Update the Makefile so that it knows about all the map files.
      This produces a slight difference in some of the map files, using a
      uniform naming convention and not mapping the null character.
      
      In src/backend/utils/mb/conversion_procs create a master utf8<->win
      codepage function like the ISO 8859 versions instead of having a separate
      handler for each conversion.
      
      There is an externally visible change in the name of the win1258 to utf8
      conversion.  According to the documentation notes, it was named
      incorrectly and this changes it to a standard name.
      
      Running the Unicode mapping perl scripts has shown some additional mapping
      changes in koi8r and iso8859-7.
      1b658473
  2. 13 2月, 2006 1 次提交
  3. 12 2月, 2006 6 次提交
  4. 11 2月, 2006 1 次提交
  5. 10 2月, 2006 1 次提交
    • B
      Allow psql multi-line column values to align in the proper columns · c01999a5
      Bruce Momjian 提交于
        If the second output column value is 'a\nb', the 'b' should appear
        in the second display column, rather than the first column as it
        does now.
      
      Change libpq's PQdsplen() to return more useful values.
      
      > Note: this changes the PQdsplen function, it can now return zero or
      > minus one which was not possible before. It doesn't appear anyone is
      > actually using the functions other than psql but it is a change. The
      > functions are not actually documentated anywhere so it's not like we're
      > breaking a defined interface. The new semantics follow the Unicode
      > standard.
      
      BACKWARD COMPATIBLE CHANGE.
      
      The only user-visible change I saw in the regression tests is that a
      SELECT * on a table where all the columns have been dropped doesn't
      return a blank line like before.  This seems like a step forward.
      
      Martijn van Oosterhout
      c01999a5
  6. 05 2月, 2006 1 次提交
    • A
      · f8b54fe6
      Andrew Dunstan 提交于
      DROP IF EXISTS for ROLE/USER/GROUP
      f8b54fe6
  7. 26 1月, 2006 2 次提交
  8. 22 1月, 2006 1 次提交
    • N
      Allow an optional alias for the target table to be specified for UPDATE · 1d763d91
      Neil Conway 提交于
      and DELETE. If specified, the alias must be used instead of the full
      table name. Also, the alias currently cannot be used in the SET clause
      of UPDATE.
      
      Patch from Atsushi Ogawa, various editorialization by Neil Conway.
      Along the way, make the rowtypes regression test pass if add_missing_from
      is enabled, and add a new (skeletal) regression test for DELETE.
      1d763d91
  9. 21 1月, 2006 1 次提交
    • B
      Add GRANT ON SEQUENCE syntax to support sequence-only permissions. · 4789e988
      Bruce Momjian 提交于
      Continue to support GRANT ON [TABLE] for sequences for backward
      compatibility;  issue warning for invalid sequence permissions.
      
      [Backward compatibility warning message.]
      
      Add USAGE permission for sequences that allows only currval() and
      nextval(), not setval().
      
      Mention object name in grant/revoke warnings because of possible
      multi-object operations.
      4789e988
  10. 18 1月, 2006 1 次提交
    • N
      Add a new system view, pg_cursors, that displays the currently available · 33e06ebc
      Neil Conway 提交于
      cursors. Patch from Joachim Wieland, review and ediorialization by Neil
      Conway. The view lists cursors defined by DECLARE CURSOR, using SPI, or
      via the Bind message of the frontend/backend protocol. This means the
      view does not list the unnamed portal or the portal created to implement
      EXECUTE. Because we do list SPI portals, there might be more rows in
      this view than you might expect if you are using SPI implicitly (e.g.
      via a procedural language).
      
      Per recent discussion on -hackers, the query string included in the
      view for cursors defined by DECLARE CURSOR is based on
      debug_query_string. That means it is not accurate if multiple queries
      separated by semicolons are submitted as one query string. However,
      there doesn't seem a trivial fix for that: debug_query_string
      is better than nothing. I also changed SPI_cursor_open() to include
      the source text for the portal it creates: AFAICS there is no reason
      not to do this.
      
      Update the documentation and regression tests, bump the catversion.
      33e06ebc
  11. 17 1月, 2006 1 次提交
  12. 16 1月, 2006 2 次提交
  13. 12 1月, 2006 1 次提交
  14. 11 1月, 2006 1 次提交
  15. 08 1月, 2006 1 次提交
    • N
      Add a new system view, pg_prepared_statements, that can be used to · 44b928e8
      Neil Conway 提交于
      access information about the prepared statements that are available
      in the current session. Original patch from Joachim Wieland, various
      improvements by Neil Conway.
      
      The "statement" column of the view contains the literal query string
      sent by the client, without any rewriting or pretty printing. This
      means that prepared statements created via SQL will be prefixed with
      "PREPARE ... AS ", whereas those prepared via the FE/BE protocol will
      not. That is unfortunate, but discussion on -patches did not yield an
      efficient way to improve this, and there is some merit in returning
      exactly what the client sent to the backend.
      
      Catalog version bumped, regression tests updated.
      44b928e8
  16. 05 1月, 2006 1 次提交
  17. 29 12月, 2005 1 次提交
  18. 28 12月, 2005 3 次提交
    • B
      Add COPY CSV test that tests CSV output of \. · 54e5caa4
      Bruce Momjian 提交于
      54e5caa4
    • B
      Add regression tests for CSV and \., and add automatic quoting of a · 87289ff3
      Bruce Momjian 提交于
      single column dump that has a \. value, so the load works properly.  I
      also added documentation describing this issue.
      87289ff3
    • T
      Implement SQL-compliant treatment of row comparisons for < <= > >= cases · 6e077097
      Tom Lane 提交于
      (previously we only did = and <> correctly).  Also, allow row comparisons
      with any operators that are in btree opclasses, not only those with these
      specific names.  This gets rid of a whole lot of indefensible assumptions
      about the behavior of particular operators based on their names ... though
      it's still true that IN and NOT IN expand to "= ANY".  The patch adds a
      RowCompareExpr expression node type, and makes some changes in the
      representation of ANY/ALL/ROWCOMPARE SubLinks so that they can share code
      with RowCompareExpr.
      
      I have not yet done anything about making RowCompareExpr an indexable
      operator, but will look at that soon.
      
      initdb forced due to changes in stored rules.
      6e077097
  19. 15 12月, 2005 1 次提交
  20. 11 12月, 2005 1 次提交
  21. 07 12月, 2005 1 次提交
  22. 05 12月, 2005 1 次提交
  23. 28 11月, 2005 1 次提交
    • T
      Change the parser to translate "foo [NOT] IN (expression-list)" to · 3d376fce
      Tom Lane 提交于
      ScalarArrayOpExpr when possible, that is, whenever there is an array type
      for the values of the expression list.  This completes the project I've
      been working on to improve the speed of index searches with long IN lists,
      as per discussion back in mid-October.
      
      I did not force initdb, but until you do one you will see failures in the
      "rules" regression test, because some of the standard system views use IN
      and their compiled formats have changed.
      3d376fce
  24. 24 11月, 2005 1 次提交
  25. 21 11月, 2005 1 次提交
    • A
      Implement DROP OWNED and REASSIGN OWNED. These new commands facilitate the · cec3b0a9
      Alvaro Herrera 提交于
      process of dropping roles by dropping objects owned by them and privileges
      granted to them, or giving the owned objects to someone else, through the
      use of the data stored in the new pg_shdepend catalog.
      
      Some refactoring of the GRANT/REVOKE code was needed, as well as ALTER OWNER
      code.  Further cleanup of code duplication in the GRANT code seems necessary.
      
      Implemented by me after an idea from Tom Lane, who also provided various kind
      of implementation advice.
      
      Regression tests pass.  Some tests for the new functionality are also added,
      as well as rudimentary documentation.
      cec3b0a9
  26. 20 11月, 2005 1 次提交
    • A
      · daea4d8e
      Andrew Dunstan 提交于
      DROP objecttype IF EXISTS for the following objects:
        table view index sequence schema type domain conversion
      daea4d8e
  27. 19 11月, 2005 1 次提交
    • 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
  28. 18 11月, 2005 1 次提交
    • T
      Make SQL arrays support null elements. This commit fixes the core array · cecb6075
      Tom Lane 提交于
      functionality, but I still need to make another pass looking at places
      that incidentally use arrays (such as ACL manipulation) to make sure they
      are null-safe.  Contrib needs work too.
      I have not changed the behaviors that are still under discussion about
      array comparison and what to do with lower bounds.
      cecb6075
  29. 08 11月, 2005 1 次提交
  30. 26 10月, 2005 1 次提交