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 1v7ScY-0033RY-MR for pgsql-hackers@arkaria.postgresql.org; Sat, 11 Oct 2025 05:58:22 +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 1v7ScW-00FQrP-Fq for pgsql-hackers@arkaria.postgresql.org; Sat, 11 Oct 2025 05:58:21 +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 1v7ScW-00FQrF-63 for pgsql-hackers@lists.postgresql.org; Sat, 11 Oct 2025 05:58:21 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v7ScU-001XSb-26 for pgsql-hackers@lists.postgresql.org; Sat, 11 Oct 2025 05:58:20 +0000 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-78115430134so1918791b3a.1 for ; Fri, 10 Oct 2025 22:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760162296; x=1760767096; darn=lists.postgresql.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=SVSsAvEmYs7ZEt/VYVPLvVN1CH7uXmbgJYw0zBwwBTU=; b=KRMVoMgzLLaEWgPYVH0/HmgVNok2y0I5evCqJfIPtDLh0hPWA1H1ouaj/87AZDhC8w Zjru3olHCkwIfWWZPZ4NdcUJCBA568nG2TQfEgfwp7jwlDxJyw8V9ht6RMsYXlsg7X2j 7ZRN0ej6IcYxy0fmVremwvEQOEUMRFShQw+ClkDtBh5XJaoLrr3q+sYWNHhKUP9SBHO/ jX/eozRKPIvBxkirPrjbTAP11AafEFuSGJgikvP5u2IQ39Nm2t2+dOTAz3YaLngzAAds gj+5VDlvUDfCDMq2yIVB1tue+ssVvVRyqb6beP0HSgzfFA+cBtd5Fq6kGFAh4GeiKNBU lplQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760162297; x=1760767097; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SVSsAvEmYs7ZEt/VYVPLvVN1CH7uXmbgJYw0zBwwBTU=; b=nloy5rdMGwWWMDeryPqm9RaNDWpn4ebPwN2xlmTHjQbDlSoXjQnMpedgmMPm7fmyNI 1GPavYiyZoNJFOjv8nTl5aQEnEjpTL4DS7XQwZKV6E2fimW8/suK+/MXhfFbrvsNtN5P NEIdtZNRRtCZn8WGp9n4nQ6HNd4po4k1Y+MbKFzTe6kzjUtJjgmu4KD/F4fETPxuuLy5 qTxov6Uqvuj5vtMTaAoE2DjfN+AzPwX0aPEsJQLzVU2nbBTZiywkxyPdwLVX6BXHdsy2 bkf/kPsEfB+Bt9f1B0MPrslhpzotvfWteSlGFKmxgw+0uFMWDjUmBjInUaNkZgN1mb5z /kGg== X-Forwarded-Encrypted: i=1; AJvYcCXQ2IF+myMGDlQ8vi412ypfbJLzMRgbX9q9uw4qegAxugVDFR+R+XtWc2L81jIsx9LbCb65ha13pqBKvqbZ@lists.postgresql.org X-Gm-Message-State: AOJu0YyW0N3SEjkTPgmtN6yD5ruQ6NsCqZOxIbxjKJcFHVKjLNAuI5r/ tDinxBS1to7UM52biNfcpZI+l/amwZxeld890y9WX3OrgM/v+ujMNg7H X-Gm-Gg: ASbGncupOPMI12ey+9OWTSLy0RuMoY3YxNyX+yA61QOv+8i/TjxmolE8anCI9oWH35p 63RkaSDzpgFTgjixPIKLm/VquXvv1MkWDwrcsVcJxHo/O4KmUcnqDNFGcsmBB6aoE9ObA0YLHPV rry8xu9Eo8cZ4JVFmee8o/056gSsy129YbXi40ufWGE71XeAyrqkrotqUpsIKeJNBG6ug8GiVVs 8E+0c4sdUuKc3JyOcHHN2v6Xt4gS2IOt8pj1Rkndbxyj/UKAnIJ4cKYrkyf7chPdsX4zdgZiEm4 ZEwDBLrMUTdtjrg2Nrmrg+T5dVAsy8Cp4ZV2pqOGohOvBhEsvTKUJgCR9VBMYuPRaWfXvQMzTCu 2kiVuH8mU6BDnhhuDR98eB9rwyiWb1d9RKPne6J97d96JFRYi7ePiBistLMRhdow= X-Google-Smtp-Source: AGHT+IFOLo+P3vx4NjGOHM2qR6vUnWzU/o+u0SIhbDVp/mVhDsIYEMx6P5/QyvkQZbS2xGAQpiW/rA== X-Received: by 2002:a05:6a00:228c:b0:781:16de:cc1a with SMTP id d2e1a72fcca58-79387ff6c4emr18962424b3a.32.1760162296355; Fri, 10 Oct 2025 22:58:16 -0700 (PDT) Received: from smtpclient.apple ([170.178.170.211]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7992b06076asm4946070b3a.4.2025.10.10.22.58.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Oct 2025 22:58:15 -0700 (PDT) From: Chao Li Message-Id: <66A28678-BDC0-4266-9244-74320D578222@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_3BDFC205-B40A-4D0A-8D5A-4CDC9A76CF7D" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: Add RESPECT/IGNORE NULLS and FROM FIRST/LAST options Date: Sat, 11 Oct 2025 13:57:58 +0800 In-Reply-To: <20251011.144218.1729318385118014326.ishii@postgresql.org> Cc: tgl@sss.pgh.pa.us, pramsey@cleverelephant.ca, ojford@gmail.com, peter@eisentraut.org, krasiyan@gmail.com, vik@postgresfriends.org, andrew@tao11.riddles.org.uk, david@fetter.org, pgsql-hackers@lists.postgresql.org To: Tatsuo Ishii References: <20251008.093117.1326499841464447981.ishii@postgresql.org> <2952409.1760023154@sss.pgh.pa.us> <20251011.090731.1451293026979559494.ishii@postgresql.org> <20251011.144218.1729318385118014326.ishii@postgresql.org> X-Mailer: Apple Mail (2.3826.700.81) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_3BDFC205-B40A-4D0A-8D5A-4CDC9A76CF7D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Oct 11, 2025, at 13:42, Tatsuo Ishii wrote: >=20 >>> Also the error is certainly user-facing, >>> so using elog() was quite inappropriate. It should be ereport with = an >>> errcode of (probably) ERRCODE_FEATURE_NOT_SUPPORTED. Rolling your >>> own implementation of get_func_name() wasn't great either. >>=20 >> I overlooked the elog() call and "own implementation of >> get_func_name()". Will fix. >=20 > Attached is a trivial patch to fix that. I am going to push it if > there's no objection. >=20 > Best regards, > -- > Tatsuo Ishii > SRA OSS K.K. > English: http://www.sraoss.co.jp/index_en/ > Japanese:http://www.sraoss.co.jp > I just take a quick look at the patch, a tiny comment is: ``` + char *funcname =3D = get_func_name(fcinfo->flinfo->fn_oid); ``` This can be a =E2=80=9Cconst char *=E2=80=9D. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/ --Apple-Mail=_3BDFC205-B40A-4D0A-8D5A-4CDC9A76CF7D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Oct 11, 2025, at 13:42, Tatsuo Ishii = <ishii@postgresql.org> wrote:

Also the error is certainly = user-facing,
so using elog() was quite inappropriate.  It should = be ereport with an
errcode of (probably) = ERRCODE_FEATURE_NOT_SUPPORTED.  Rolling your
own implementation = of get_func_name() wasn't great either.

I overlooked = the elog() call and "own implementation of
get_func_name()". Will = fix.

Attached is a trivial patch to fix that. I am = going to push it if
there's no objection.

Best = regards,
--
Tatsuo Ishii
SRA OSS K.K.
English: = http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp
<= span = id=3D"cid:8C7D2BC5-F665-497A-9427-3080FE970E60"><v1-0001-Use-ereport-ra= ther-than-elog-in-WinCheckAndInitia.patch>

I just take a quick look at the patch, a = tiny comment is:

```
+ = char =   *funcname =3D = get_func_name(fcinfo->flinfo->fn_oid);
```

<= /div>
This can be a =E2=80=9Cconst char = *=E2=80=9D.

Best regards,
--
Chao Li (Evan)
HighGo Software = Co., Ltd.
https://www.highgo.com/




= --Apple-Mail=_3BDFC205-B40A-4D0A-8D5A-4CDC9A76CF7D--