1. 18 7月, 2013 1 次提交
    • A
      Move checking an explicit VARIADIC "any" argument into the parser. · d26888bc
      Andrew Dunstan 提交于
      This is more efficient and simpler . It does mean that an untyped NULL
      can no longer be used in such cases, which should be mentioned in
      Release Notes, but doesn't seem a terrible loss. The workaround is to
      cast the NULL to some array type.
      
      Pavel Stehule, reviewed by Jeevan Chalke.
      d26888bc
  2. 30 5月, 2013 1 次提交
  3. 20 4月, 2013 1 次提交
    • P
      Clean up references to SQL92 · cc26ea9f
      Peter Eisentraut 提交于
      In most cases, these were just references to the SQL standard in
      general.  In a few cases, a contrast was made between SQL92 and later
      standards -- those have been kept unchanged.
      cc26ea9f
  4. 15 3月, 2013 1 次提交
  5. 25 1月, 2013 1 次提交
  6. 02 1月, 2013 1 次提交
  7. 06 9月, 2012 1 次提交
    • T
      Allow embedded spaces without quoting in unix_socket_directories entries. · d2286a98
      Tom Lane 提交于
      This fix removes an unnecessary incompatibility with the old behavior of
      the unix_socket_directory parameter.  Since pathnames with embedded spaces
      are fairly popular on some platforms, the incompatibility could be
      significant in practice.  We'll still strip unquoted leading/trailing
      spaces, however.
      
      No docs update since the documentation already implied that it worked
      like this.
      
      Per bug #7514 from Murray Cumming.
      d2286a98
  8. 11 8月, 2012 1 次提交
    • T
      Support having multiple Unix-domain sockets per postmaster. · c9b0cbe9
      Tom Lane 提交于
      Replace unix_socket_directory with unix_socket_directories, which is a list
      of socket directories, and adjust postmaster's code to allow zero or more
      Unix-domain sockets to be created.
      
      This is mostly a straightforward change, but since the Unix sockets ought
      to be created after the TCP/IP sockets for safety reasons (better chance
      of detecting a port number conflict), AddToDataDirLockFile needs to be
      fixed to support out-of-order updates of data directory lockfile lines.
      That's a change that had been foreseen to be necessary someday anyway.
      
      Honza Horak, reviewed and revised by Tom Lane
      c9b0cbe9
  9. 11 6月, 2012 1 次提交
  10. 26 5月, 2012 1 次提交
  11. 14 4月, 2012 1 次提交
    • P
      Rename bytea_agg to string_agg and add delimiter argument · c0cc526e
      Peter Eisentraut 提交于
      Per mailing list discussion, we would like to keep the bytea functions
      parallel to the text functions, so rename bytea_agg to string_agg,
      which already exists for text.
      
      Also, to satisfy the rule that we don't want aggregate functions of
      the same name with a different number of arguments, add a delimiter
      argument, just like string_agg for text already has.
      c0cc526e
  12. 02 1月, 2012 1 次提交
  13. 23 12月, 2011 1 次提交
  14. 21 12月, 2011 1 次提交
  15. 11 12月, 2011 1 次提交
  16. 30 8月, 2011 1 次提交
  17. 24 8月, 2011 1 次提交
  18. 08 7月, 2011 1 次提交
  19. 05 7月, 2011 1 次提交
  20. 10 6月, 2011 1 次提交
  21. 24 5月, 2011 1 次提交
  22. 10 4月, 2011 2 次提交
  23. 23 3月, 2011 1 次提交
    • T
      Improve reporting of run-time-detected indeterminate-collation errors. · 6e197cb2
      Tom Lane 提交于
      pg_newlocale_from_collation does not have enough context to give an error
      message that's even a little bit useful, so move the responsibility for
      complaining up to its callers.  Also, reword ERRCODE_INDETERMINATE_COLLATION
      error messages in a less jargony, more message-style-guide-compliant
      fashion.
      6e197cb2
  24. 09 2月, 2011 1 次提交
    • P
      Per-column collation support · 414c5a2e
      Peter Eisentraut 提交于
      This adds collation support for columns and domains, a COLLATE clause
      to override it per expression, and B-tree index support.
      
      Peter Eisentraut
      reviewed by Pavel Stehule, Itagaki Takahiro, Robert Haas, Noah Misch
      414c5a2e
  25. 19 1月, 2011 1 次提交
    • T
      Avoid detoast in texteq/textne/byteaeq/byteane for unequal-length strings. · 1b393f4e
      Tom Lane 提交于
      We can get the length of a compressed or out-of-line datum without actually
      detoasting it.  If the lengths of two strings are unequal, we can then
      conclude they are unequal without detoasting.  That saves considerable work
      in an admittedly less-common case, without costing anything much when the
      optimization doesn't apply.
      
      Noah Misch
      1b393f4e
  26. 02 1月, 2011 1 次提交
  27. 22 12月, 2010 1 次提交
  28. 24 11月, 2010 1 次提交
  29. 21 11月, 2010 1 次提交
    • R
      Add new SQL function, format(text). · 75048707
      Robert Haas 提交于
      Currently, three conversion format specifiers are supported: %s for a
      string, %L for an SQL literal, and %I for an SQL identifier.  The latter
      two are deliberately designed not to overlap with what sprintf() already
      supports, in case we want to add more of sprintf()'s functionality here
      later.
      
      Patch by Pavel Stehule, heavily revised by me.  Reviewed by Jeff Janes
      and, in earlier versions, by Itagaki Takahiro and Tom Lane.
      75048707
  30. 21 9月, 2010 1 次提交
  31. 24 8月, 2010 1 次提交
  32. 11 8月, 2010 1 次提交
    • T
      Add three-parameter forms of array_to_string and string_to_array, to allow · 33f43725
      Tom Lane 提交于
      better handling of NULL elements within the arrays.  The third parameter
      is a string that should be used to represent a NULL element, or should
      be translated into a NULL element, respectively.  If the third parameter
      is NULL it behaves the same as the two-parameter form.
      
      There are two incompatible changes in the behavior of the two-parameter form
      of string_to_array.  First, it will return an empty (zero-element) array
      rather than NULL when the input string is of zero length.  Second, if the
      field separator is NULL, the function splits the string into individual
      characters, rather than returning NULL as before.  These two changes make
      this form fully compatible with the behavior of the new three-parameter form.
      
      Pavel Stehule, reviewed by Brendan Jurd
      33f43725
  33. 06 8月, 2010 1 次提交
    • T
      Remove the single-argument form of string_agg(). It added nothing much in · b0c451e1
      Tom Lane 提交于
      functionality, while creating an ambiguity in usage with ORDER BY that at
      least two people have already gotten seriously confused by.  Also, add an
      opr_sanity test to check that we don't in future violate the newly minted
      policy of not having built-in aggregates with the same name and different
      numbers of parameters.  Per discussion of a complaint from Thom Brown.
      b0c451e1
  34. 26 2月, 2010 1 次提交
  35. 09 2月, 2010 1 次提交
    • T
      Create an official API function for C functions to use to check if they are · d5768dce
      Tom Lane 提交于
      being called as aggregates, and to get the aggregate transition state memory
      context if needed.  Use it instead of poking directly into AggState and
      WindowAggState in places that shouldn't know so much.
      
      We should have done this in 8.4, probably, but better late than never.
      
      Revised version of a patch by Hitoshi Harada.
      d5768dce
  36. 01 2月, 2010 1 次提交
  37. 26 1月, 2010 1 次提交
  38. 03 1月, 2010 1 次提交
  39. 05 8月, 2009 1 次提交
    • T
      Support hex-string input and output for type BYTEA. · a2a8c7a6
      Tom Lane 提交于
      Both hex format and the traditional "escape" format are automatically
      handled on input.  The output format is selected by the new GUC variable
      bytea_output.
      
      As committed, bytea_output defaults to HEX, which is an *incompatible
      change*.  We will keep it this way for awhile for testing purposes, but
      should consider whether to switch to the more backwards-compatible
      default of ESCAPE before 8.5 is released.
      
      Peter Eisentraut
      a2a8c7a6