Details

    • Sub-task
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • None
    • SQL
    • None

    Description

      Construct an array from the results of a subquery. In this form, the array constructor is written with the key word ARRAY followed by a parenthesized (not bracketed) subquery. For example:

      SELECT ARRAY(SELECT oid FROM pg_proc WHERE proname LIKE 'bytea%');
                                       array
      -----------------------------------------------------------------------
       {2011,1954,1948,1952,1951,1244,1950,2005,1949,1953,2006,31,2412,2413}
      (1 row)
      

      More details:
      https://www.postgresql.org/docs/9.3/sql-expressions.html#SQL-SYNTAX-ARRAY-CONSTRUCTORS
      https://github.com/postgres/postgres/commit/730840c9b649a48604083270d48792915ca89233

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yumwang Yuming Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: