1. 22 8月, 2006 1 次提交
  2. 21 8月, 2006 1 次提交
    • T
      Fix all known problems with pg_dump's handling of serial sequences · 2b2a5072
      Tom Lane 提交于
      by abandoning the idea that it should say SERIAL in the dump.  Instead,
      dump serial sequences and column defaults just like regular ones.
      Add a new backend command ALTER SEQUENCE OWNED BY to let pg_dump recreate
      the sequence-to-column dependency that was formerly created "behind the
      scenes" by SERIAL.  This restores SERIAL to being truly "just a macro"
      consisting of component operations that can be stated explicitly in SQL.
      Furthermore, the new command allows sequence ownership to be reassigned,
      so that old mistakes can be cleaned up.
      
      Also, downgrade the OWNED-BY dependency from INTERNAL to AUTO, since there
      is no longer any very compelling argument why the sequence couldn't be
      dropped while keeping the column.  (This forces initdb, to be sure the
      right kinds of dependencies are in there.)
      
      Along the way, add checks to prevent ALTER OWNER or SET SCHEMA on an
      owned sequence; you can now only do this indirectly by changing the
      owning table's owner or schema.  This is an oversight in previous
      releases, but probably not worth back-patching.
      2b2a5072
  3. 18 8月, 2006 1 次提交
    • T
      Implement archive_timeout feature to force xlog file switches to occur no more · e8ea9e95
      Tom Lane 提交于
      than N seconds apart.  This allows a simple, if not very high performance,
      means of guaranteeing that a PITR archive is no more than N seconds behind
      real time.  Also make pg_current_xlog_location return the WAL Write pointer,
      add pg_current_xlog_insert_location to return the Insert pointer, and fix
      pg_xlogfile_name_offset to return its results as a two-element record instead
      of a smashed-together string, as per recent discussion.
      
      Simon Riggs
      e8ea9e95
  4. 06 8月, 2006 1 次提交
    • T
      Add support for forcing a switch to a new xlog file; cause such a switch · 704ddaaa
      Tom Lane 提交于
      to happen automatically during pg_stop_backup().  Add some functions for
      interrogating the current xlog insertion point and for easily extracting
      WAL filenames from the hex WAL locations displayed by pg_stop_backup
      and friends.  Simon Riggs with some editorialization by Tom Lane.
      704ddaaa
  5. 29 7月, 2006 1 次提交
  6. 17 7月, 2006 1 次提交
  7. 14 7月, 2006 1 次提交
  8. 12 7月, 2006 1 次提交
  9. 06 7月, 2006 1 次提交
  10. 20 6月, 2006 1 次提交
  11. 18 6月, 2006 1 次提交
  12. 16 6月, 2006 2 次提交
  13. 30 5月, 2006 1 次提交
  14. 18 5月, 2006 2 次提交
  15. 01 5月, 2006 1 次提交
  16. 25 4月, 2006 1 次提交
  17. 23 4月, 2006 1 次提交
  18. 11 3月, 2006 2 次提交
    • 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
    • B
      497b5ad9
  19. 07 3月, 2006 2 次提交
    • B
      SGML typo fix. · 135fe189
      Bruce Momjian 提交于
      135fe189
    • 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
  20. 06 3月, 2006 1 次提交
  21. 04 3月, 2006 1 次提交
  22. 19 2月, 2006 1 次提交
    • 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
  23. 12 2月, 2006 2 次提交
    • B
      Allow to_char() to print localized month and day names. · f695750c
      Bruce Momjian 提交于
      Euler Taveira de Oliveira
      f695750c
    • B
      I've created a new shared catalog table pg_shdescription to store · f9a726aa
      Bruce Momjian 提交于
      comments on cluster global objects like databases, tablespaces, and
      roles.
      
      It touches a lot of places, but not much in the way of big changes.  The
      only design decision I made was to duplicate the query and manipulation
      functions rather than to try and have them handle both shared and local
      comments.  I believe this is simpler for the code and not an issue for
      callers because they know what type of object they are dealing with.
      This has resulted in a shobj_description function analagous to
      obj_description and backend functions [Create/Delete]SharedComments
      mirroring the existing [Create/Delete]Comments functions.
      
      pg_shdescription.h goes into src/include/catalog/
      
      Kris Jurka
      f9a726aa
  24. 11 2月, 2006 1 次提交
  25. 26 1月, 2006 1 次提交
    • T
      Clean up the INET-vs-CIDR situation. Get rid of the internal is_cidr flag · 8d8bf127
      Tom Lane 提交于
      and rely exclusively on the SQL type system to tell the difference between
      the types.  Prevent creation of invalid CIDR values via casting from INET
      or set_masklen() --- both of these operations now silently zero any bits
      to the right of the netmask.  Remove duplicate CIDR comparison operators,
      letting the type rely on the INET operators instead.
      8d8bf127
  26. 12 1月, 2006 1 次提交
  27. 28 12月, 2005 1 次提交
    • 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
  28. 22 12月, 2005 2 次提交
  29. 11 12月, 2005 1 次提交
  30. 04 12月, 2005 1 次提交
    • B
      Allow to_char(interval) and to_char(time) to use AM/PM specifications. · d20901a3
      Bruce Momjian 提交于
      Map them to a single day, so '30 hours' is 'AM'.
      
      Have to_char(interval) and to_char(time) use "HH", "HH12" as 12-hour
      intervals, rather than bypass and print the full interval hours.  This
      is neeeded because to_char(time) is mapped to interval in this function.
      Intervals should use "HH24", and document suggestion.
      
      Allow "D" format specifiers for interval/time.
      d20901a3
  31. 29 11月, 2005 1 次提交
  32. 20 11月, 2005 1 次提交
  33. 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
  34. 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