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 1pubCj-0003Xb-Ti for pgsql-committers@arkaria.postgresql.org; Thu, 04 May 2023 15:49:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pubCg-0000sb-1q for pgsql-committers@arkaria.postgresql.org; Thu, 04 May 2023 15:49:10 +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 1pubCH-000628-Uu for pgsql-committers@lists.postgresql.org; Thu, 04 May 2023 15:48:45 +0000 Received: from mahout.postgresql.org ([2001:4800:3e1:1::227]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pubCE-000YkF-Uh for pgsql-committers@lists.postgresql.org; Thu, 04 May 2023 15:48:45 +0000 Received: from gemulon.postgresql.org ([72.32.157.198]) by mahout.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pubCD-0005JP-Ee for pgsql-committers@lists.postgresql.org; Thu, 04 May 2023 15:48:41 +0000 Received: from localhost ([127.0.0.1] helo=gemulon.postgresql.org) by gemulon.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1pubCB-000SkA-UU for pgsql-committers@lists.postgresql.org; Thu, 04 May 2023 15:48:40 +0000 Content-Type: multipart/mixed; boundary="===============0240789334541467442==" MIME-Version: 1.0 From: Tom Lane To: pgsql-committers@lists.postgresql.org Subject: pgsql: In array_position()/array_positions(), beware of empty input arr X-Auto-Response-Suppress: All Auto-Submitted: auto-generated Message-Id: Date: Thu, 04 May 2023 15:48:40 +0000 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --===============0240789334541467442== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 SW4gYXJyYXlfcG9zaXRpb24oKS9hcnJheV9wb3NpdGlvbnMoKSwgYmV3YXJlIG9mIGVtcHR5IGlu cHV0IGFycmF5LgoKVGhlc2UgZnVuY3Rpb25zIGluY2F1dGlvdXNseSBmZXRjaGVkIHRoZSBhcnJh eSdzIGZpcnN0IGxvd2VyIGJvdW5kCmV2ZW4gd2hlbiB0aGUgYXJyYXkgaXMgemVyby1kaW1lbnNp b25hbCwgdGh1cyBmZXRjaGluZyB0aGUgd29yZAphZnRlciB0aGUgYWxsb2NhdGVkIGFycmF5IHNw YWNlLiAgV2hpbGUgYWxtb3N0IGFsd2F5cyBoYXJtbGVzcywKd2l0aCB2ZXJ5IGJhZCBsdWNrIHRo aXMgY291bGQgcmVzdWx0IGluIFNJR1NFR1YuICBGaXggYnkgYWRkaW5nCmFuIGVhcmx5IGV4aXQg Zm9yIGVtcHR5IGlucHV0LgoKUGVyIGJ1ZyAjMTc5MjAgZnJvbSBBbGV4YW5kZXIgTGFraGluLgoK RGlzY3Vzc2lvbjogaHR0cHM6Ly9wb3N0Z3IuZXMvbS8xNzkyMC1mN2MyMjhjNjI3YjZkMDJlJTQw cG9zdGdyZXNxbC5vcmcKCkJyYW5jaAotLS0tLS0KUkVMXzEyX1NUQUJMRQoKRGV0YWlscwotLS0t LS0tCmh0dHBzOi8vZ2l0LnBvc3RncmVzcWwub3JnL3BnL2NvbW1pdGRpZmYvNTgwZGY1MDc4OTYz NTFhMGViYjVhMDljMmM4NGMwZWFjN2I2NzQwZgoKTW9kaWZpZWQgRmlsZXMKLS0tLS0tLS0tLS0t LS0Kc3JjL2JhY2tlbmQvdXRpbHMvYWR0L2FycmF5X3VzZXJmdW5jcy5jIHwgMTYgKysrKysrKysr KysrLS0tLQoxIGZpbGUgY2hhbmdlZCwgMTIgaW5zZXJ0aW9ucygrKSwgNCBkZWxldGlvbnMoLSkK Cg== --===============0240789334541467442==--