Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rLAJD-006RZI-Im for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Jan 2024 23:06:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rLAJC-008gAG-7x for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Jan 2024 23:05:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rLAJB-008gA7-KW for pgsql-hackers@lists.postgresql.org; Wed, 03 Jan 2024 23:05:57 +0000 Received: from out-178.mta0.migadu.com ([2001:41d0:1004:224b::b2]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rLAJ8-00FPIP-TN for pgsql-hackers@lists.postgresql.org; Wed, 03 Jan 2024 23:05:57 +0000 Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nmfay.com; s=key1; t=1704323151; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Aepcd2oN5PlwheSf0DlEAUr40pLdKw4koAjl2m0jZ1U=; b=ehQy9rYlsAjx6g8vhk3mAVFDkVJsFWsK3APU73NC7TuvGdgFscEXUVZ8WsjZSCTvXPeROY Q+ip59hyCRaxrtZzhAuvjhnhLoWENXMzs3sluyKDlqyRYi3o8x1t7ueEW0qwaISpF2T51d s9Y5Vx1W14ZJIIwI/6OHGd4OCghtpe1ntCpcb9CGsR7pJHvUJrMFPV1cyN6dU7qL1rkj9Y 9mYfEX5gV3H9GxUABgguf3IXBuSFGHgnWMGi30D3vvS9WfhFR5nQGTYI9k8tOjXW/t3uBH 1WIt1gM7JsOpxGG4iq/FvZJE99rlK3P0d6E8br3k/dh2euT4sUkgG4KNQJeMgg== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 03 Jan 2024 18:05:47 -0500 Message-Id: Cc: "PostgreSQL Hackers" Subject: Re: add function argument names to regex* functions. X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "Dian Fay" To: "Jim Nasby" , "jian he" , "Peter Eisentraut" References: <0eb3a5d7-75d8-4da5-9c88-a93deccdaa03@gmail.com> In-Reply-To: <0eb3a5d7-75d8-4da5-9c88-a93deccdaa03@gmail.com> X-Migadu-Flow: FLOW_OUT List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > > Another possibility is `index`, which is relatively short and not a > > reserved keyword ^1. `position` is not as precise but would avoid the > > conceptual overloading of ordinary indices. > > I'm not a fan of "index" since that leaves the question of > whether it's 0 or 1 based. "Position" is a bit better, but I think > Jian's suggestion of "occurance" is best. We do have precedent for one-based `index` in Postgres: array types are 1-indexed by default! "Occurrence" removes that ambiguity but it's long and easy to misspell (I looked it up after typing it just now and it _still_ feels off). How's "instance"?