1. 11 3月, 2006 2 次提交
    • B
      Add CVS tag lines to files that were lacking them. · f3d99d16
      Bruce Momjian 提交于
      f3d99d16
    • N
      Implement 4 new aggregate functions from SQL2003. Specifically: var_pop(), · 0ebf1cc8
      Neil Conway 提交于
      var_samp(), stddev_pop(), and stddev_samp(). var_samp() and stddev_samp()
      are just renamings of the historical Postgres aggregates variance() and
      stddev() -- the latter names have been kept for backward compatibility.
      This patch includes updates for the documentation and regression tests.
      The catversion has been bumped.
      
      NB: SQL2003 requires that DISTINCT not be specified for any of these
      aggregates. Per discussion on -patches, I have NOT implemented this
      restriction: if the user asks for stddev(DISTINCT x), presumably they
      know what they are doing.
      0ebf1cc8
  2. 07 3月, 2006 3 次提交
    • T
      Remove the stub support we had for UNION JOIN; per discussion, this is · 012abeba
      Tom Lane 提交于
      not likely ever to be implemented seeing it's been removed from SQL2003.
      This allows getting rid of the 'filter' version of yylex() that we had in
      parser.c, which should save at least a few microseconds in parsing.
      012abeba
    • B
      Attached is the new patch. To summarize: · d69b1632
      Bruce Momjian 提交于
         - new function justify_interval(interval)
         - modified function justify_hours(interval)
         - modified function justify_days(interval)
      
      These functions are defined to meet the requirements as discussed in
      this thread.  Specifically:
      
         - justify_hours makes certain the sign bit on the hours
           matches the sign bit on the days.  It only checks the
           sign bit on the days, and not the months, when
           determining if the hours should be positive or negative.
           After the call, -24 < hours < 24.
      
         - justify_days makes certain the sign bit on the days
           matches the sign bit on the months.  It's behavior does
           not depend on the hours, nor does it modify the hours.
           After the call, -30 < days < 30.
      
         - justify_interval makes sure the sign bits on all three
           fields months, days, and hours are all the same.  After
           the call, -24 < hours < 24 AND -30 < days < 30.
      
      Mark Dilger
      d69b1632
    • B
      Enable standard_conforming_strings to be turned on. · 19c21d11
      Bruce Momjian 提交于
      Kevin Grittner
      19c21d11
  3. 05 3月, 2006 1 次提交
  4. 03 3月, 2006 2 次提交
  5. 01 3月, 2006 1 次提交
    • T
      Allow the syntax CREATE TYPE foo, with no parameters, to permit explicit · 8e68d783
      Tom Lane 提交于
      creation of a shell type.  This allows a less hacky way of dealing with
      the mutual dependency between a datatype and its I/O functions: make a
      shell type, then make the functions, then define the datatype fully.
      We should fix pg_dump to handle things this way, but this commit just deals
      with the backend.
      
      Martijn van Oosterhout, with some corrections by Tom Lane.
      8e68d783
  6. 28 2月, 2006 1 次提交
  7. 27 2月, 2006 1 次提交
  8. 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
  9. 13 2月, 2006 1 次提交
  10. 12 2月, 2006 6 次提交
  11. 11 2月, 2006 1 次提交
  12. 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
  13. 05 2月, 2006 1 次提交
    • A
      · f8b54fe6
      Andrew Dunstan 提交于
      DROP IF EXISTS for ROLE/USER/GROUP
      f8b54fe6
  14. 04 2月, 2006 1 次提交
  15. 26 1月, 2006 2 次提交
  16. 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
  17. 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
  18. 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
  19. 17 1月, 2006 1 次提交
  20. 16 1月, 2006 2 次提交
  21. 12 1月, 2006 1 次提交
  22. 11 1月, 2006 1 次提交
  23. 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
  24. 05 1月, 2006 2 次提交
  25. 29 12月, 2005 1 次提交
  26. 28 12月, 2005 2 次提交