Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oaJZ1-0007aw-BG for pgsql-general@arkaria.postgresql.org; Mon, 19 Sep 2022 16:24:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oaJYz-0002Qp-IO for pgsql-general@arkaria.postgresql.org; Mon, 19 Sep 2022 16:24:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oaJYz-0002Qg-6Y for pgsql-general@lists.postgresql.org; Mon, 19 Sep 2022 16:24:05 +0000 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oaJYw-00079X-HS for pgsql-general@lists.postgresql.org; Mon, 19 Sep 2022 16:24:04 +0000 Received: by mail-pj1-x102a.google.com with SMTP id q3so100953pjg.3 for ; Mon, 19 Sep 2022 09:24:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yugabyte.com; s=google; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date; bh=cMUGHSJ8DV1wxm8lMq1Jj09cZG6fV8/DF4kH/mcYocU=; b=MyUv/0i85zi4XA/nOEH+iLDqH3YoYcnuw/RPIwHkyfRLwsjCUwuyoAMtQQiNpMBliI SW8Bm68bMRQbp6T/X/Zd+BJd/3sOXMjlVo9Pz/eVqtDlufLadkXRzeZgCIu+gFlmp/Tz rg+8b7YcKNeWAympTdujKe9qn/RqOANT0cg6Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=cMUGHSJ8DV1wxm8lMq1Jj09cZG6fV8/DF4kH/mcYocU=; b=iDAZdXdodB2Vbzjn4MNSxzCmoDPbXb/4B6O39OdufEfL8faZt44rmG5XN41i0YvbWy fmS42OBg9eTUBS5xtCchv8u3alJQt6CG/XH9R16HwjlXYDeEtGrOxqR/M6R0/2CVSVYV KR1rd5QJJgG9SB7cXDKuIxywbgyRJ89B3UzszOewanRBYM11kB6RC+1oP+y3S6HFpFu3 9FWq61pZBquq4GaLZmZhLxDlTB8ETlJR1fCM8UjF9YWkiRFfbrDNmmiWtQSo2eT/1e73 6LIB0Actv2dRKr87Xf8BU87QNpSp7i77Q90uYhnfDQnvb0QfoNBBRVua5hVSehyDofOJ vnbw== X-Gm-Message-State: ACrzQf3Zrwba1ZHWjOwdnxBEBEXUY3tVt8SS17CFO/oZNm/ZtKCglO4X mmPvCUKkpVF8qMKyNcD+nNqhAj9X5V0MeQ== X-Google-Smtp-Source: AMsMyM45ZeViiWV1073fUZ8M8uBNilasO3/8Y7UvjQoIe35iy1GWoZOZfzyQClL+4aMw7VnDivcVJA== X-Received: by 2002:a17:90b:1b06:b0:202:cce0:2148 with SMTP id nu6-20020a17090b1b0600b00202cce02148mr31918736pjb.84.1663604640355; Mon, 19 Sep 2022 09:24:00 -0700 (PDT) Received: from smtpclient.apple ([2601:646:101:7fda:ddd0:9f02:85c1:78ec]) by smtp.gmail.com with ESMTPSA id g22-20020a635656000000b0043a5cc6773csm1210751pgm.54.2022.09.19.09.23.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Sep 2022 09:23:59 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: =?utf-8?B?UmU6IFdoZXJlJ3MgdGhlIGRvYyBmb3IgImFycmF5KCkiIOKAlCBh?= =?utf-8?B?cyBpbiAic2VsZWN0IGFycmF5KHZhbHVlcyAoMTcpLCAoNDIpKSI=?= From: Bryn Llewellyn In-Reply-To: <320057f4-f55a-2532-2d68-51253b5bbfbc@aklaver.com> Date: Mon, 19 Sep 2022 09:23:57 -0700 Cc: pgsql-general list Content-Transfer-Encoding: quoted-printable Message-Id: <65C0EEAA-73D9-455E-AECD-F188AD5AF973@yugabyte.com> References: <320057f4-f55a-2532-2d68-51253b5bbfbc@aklaver.com> To: Adrian Klaver X-Mailer: Apple Mail (2.3654.120.0.1.13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > adrian.klaver@aklaver.com wrote: >=20 > bryn@yugabyte.com wrote: >=20 >> Thanks. I can't, even now, formulate a search that finds = this=E2=80=94unless I know that it's a kind of array constructor. (I'll = concede, with the benefit of hindsight, that I should have thought of = that.) I hope that I'll be able to learn to navigate the PG docs better = over time. >=20 > The way I found it: >=20 > 1) Use documentation search box. >=20 > 2) Enter array( >=20 > 3) It was in the fifth item PostgreSQL: Documentation: 14: 4.2. Value = Expressions. The first four dealt with functions or the index and I knew = they where not relevant. I just repeated exactly those five search steps. I copied the first ten = results at the end. Yes, the fifth hit is the link to where the account = of the array() constructor is found. But you can't tell this from the = hitlist itself. And searching in the page of the first twenty hits for = "array(" finds nothing there. I do see that if you know the answer in = advance, then you could realize that hit #5 is what you want. But the = wording "a specific element of the array value can be extracted" didn't = help me. Never mind, I trust that I'll remember where to look now. = --------------------------------------------------------------------------= ------ Result pages: 1 2 3 4 5 6 7 8 9 Next 1. PostgreSQL: Documentation: 14: 8.15. Arrays [8.21] ...Arrays Prev Up Chapter 8. Data Types Home Next 8.15. Arrays 8.15.1. = Declaration of Array... https://www.postgresql.org/docs/14/arrays.html 2. PostgreSQL: Documentation: 14: 9.19. Array Functions and Operators = [5.04] ...Array Functions and Operators Prev Up Chapter 9. Functions and = Operators Home Next 9.19. Array... https://www.postgresql.org/docs/14/functions-array.html 3. PostgreSQL: Documentation: 14: 9.16. JSON Functions and Operators = [4.25] ...array (array elements are indexed from zero, but negative integers = count from the end). '[{"a":"foo"},{"b":"bar"},{"c":"baz"}]'::json... https://www.postgresql.org/docs/14/functions-json.html 4. PostgreSQL: Documentation: 14: Index [2.63] ...array, Arrays accessing, Accessing Arrays constant, Array Value Input = constructor, Array Constructors declaration, Declaration of Array... https://www.postgresql.org/docs/14/bookindex.html 5. PostgreSQL: Documentation: 14: 4.2. Value Expressions [2.27] ...array type, then a specific element of the array value can be = extracted by writing... https://www.postgresql.org/docs/14/sql-expressions.html 6. PostgreSQL: Documentation: 14: 8.14. JSON Types [1.76] ...array on the right side is not considered contained within the -- = array on the left... https://www.postgresql.org/docs/14/datatype-json.html 7. PostgreSQL: Documentation: 14: 66.3. Extensibility [1.33] ...array of operators and comparison values */ ScanKey orderbys; /* = array of ordering operators and comparison * values... https://www.postgresql.org/docs/14/spgist-extensibility.html 8. PostgreSQL: Documentation: 14: F.18. intarray [1.33] ...arrays. Although they will accept input arrays of more dimensions, = the data is treated as though... https://www.postgresql.org/docs/14/intarray.html 9. PostgreSQL: Documentation: 14: CREATE TYPE [1.33] ...array type; for example, it will not be a candidate for the result = type of ARRAY... https://www.postgresql.org/docs/14/sql-createtype.html 10. PostgreSQL: Documentation: 14: 9.24. Row and Array Comparisons = [1.15] ...Array Comparisons Prev Up Chapter 9. Functions and Operators Home = Next 9.24. Row and Array... https://www.postgresql.org/docs/14/functions-comparisons.html