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 1tzSz3-002LM0-4Y for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Apr 2025 04:12:17 +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 1tzSz0-00FoyG-ML for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Apr 2025 04:12:14 +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 1tzSz0-00Foy8-Bd for pgsql-hackers@lists.postgresql.org; Tue, 01 Apr 2025 04:12:14 +0000 Received: from mail-vk1-xa30.google.com ([2607:f8b0:4864:20::a30]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tzSyy-002gLH-0c for pgsql-hackers@postgresql.org; Tue, 01 Apr 2025 04:12:14 +0000 Received: by mail-vk1-xa30.google.com with SMTP id 71dfb90a1353d-523fa0df55dso5733918e0c.1 for ; Mon, 31 Mar 2025 21:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743480730; x=1744085530; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=I4HpIhlnol7u+KVNB/lHXHpmNGJhQFnO/Af/9ARAxr4=; b=GlhVUCfCLGG9memrX1BOq7q0ra2U9WUGSUSGVb2Dy8B3wvgquPE69OERQSJBM1szQV 78N3jqcQM0FPEGBfLreQJgmHwtpIRtssizh8hn8kD5srCAvHZ6V7FPvqgHKjb5fDdmSC xF81c3SDyc7kj9Lqzctms4fabBfG4NRTbV+elArGp8GbDJeyjW+kJ5fMHggCDEXJMVTg CGMAbjU9Pb4HFBv4JUYFFmQjW402s4j5Qs7UuMuka/iEpH0X8ZvGn8Kc3mjQAu06wOXS 5cgUYIr+FJjPZ1bedKnhtj57qEbWMFuumE2BN6ctSS/S4k7/mvoFpRS311KHgb0amGSL Et+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743480730; x=1744085530; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=I4HpIhlnol7u+KVNB/lHXHpmNGJhQFnO/Af/9ARAxr4=; b=Uf0jfkQiwbulWZmcXrIAdGE4goP0YMj8S1g7+jiLTZ2GtVpKnhxvNg6+vYy38U0UYx Z0D610U5bnwyTA498IdxjOjf5ZkpKQ6ChBd9nLaTcqzctB0F5m1LVFtYjx49MQyfyxvJ Bzs1N6OtWnOURehNQWKi9eoVsvr3eYN9tuPgN2kHLpa6tIQLs0FTO0p0O/aSpzWvArQg c5pE3mltJzl92QAxN44d8xePySczrdF+JIxmdxI58ZBYZHFrdkL+7ByRQfIZB43/+rk/ Y1FFqJY+xxvo/Q5dxg0dK271Pz/Ti9DAJOtDaYx5rUN7Z49DD2MieXEvDeyuCUQMIQJG QK8A== X-Gm-Message-State: AOJu0YxXZeoFUqvyQSahqaCBTpdDUVnAvK+WgAOyZTPX1O98ycSP9A7Q YQbDIA1Wvsxu1p3iLQWJhcv59IMwrUMCIDXRkgw0uYfksz1fzRiLX0MgS3V2djZhorDjVuZoevr /dwZcbrITO068yrOPL2SEBQXtTws= X-Gm-Gg: ASbGncuMo7DZXVlbQ2It3fa09eDxmSU5bBmw+J1yeIQBMtGI5yJGkL/RzpMfVhjtnUX lUhP0xd66uQ/MhzBuvKqvfx4Vj4sCu1/OEJBv9z1p7+JnH1Wp8WWVmoJ/x+mplvh0dv+b2vRKI8 j1pPrhu5Dd+9yIbYvn20QFvYIn5SWgk6wYXAz91uF0hbE4yIVAga1VNQ== X-Google-Smtp-Source: AGHT+IGkcK2qsO6Ktesf+bq/yHHD7mc4etMGxX3vh2pvCDliP60DPyeQgIimVt/3YduiaSzcvWskH1ZWJCww1XJ8OdM= X-Received: by 2002:a05:6122:3c94:b0:520:4806:a422 with SMTP id 71dfb90a1353d-5261d47676amr6246944e0c.3.1743480730401; Mon, 31 Mar 2025 21:12:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: jian he Date: Tue, 1 Apr 2025 12:11:34 +0800 X-Gm-Features: AQ5f1JqXkExfYcXRSVBqS-stR6FOZAJwHAdXryRnfMaC26sSbvZ6rw0zUt_KMMc Message-ID: Subject: Re: add function argument name to substring and substr To: "David G. Johnston" Cc: PostgreSQL-development Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Apr 1, 2025 at 6:22=E2=80=AFAM David G. Johnston wrote: > > On Tue, Mar 18, 2025 at 9:04=E2=80=AFPM jian he wrote: >> >> >> new patch attached. >> > > I've done v4 with a delta patch. > > Decided to standardize on calling the SQL Similar To regular expression e= scape replaceable "escape" everywhere. > > Instead of fully documenting the obsolete syntax I added a note explainin= g the keyword choice difference. Removed mention of it completely from the= Pattern Matching portion of the documentation - that section has enough go= ing on. > > I also add "Same as" references for the two pairs of entries. Not marrie= d to them but they do seem warranted; having Pattern Matching be required r= eading to make that connection seems undesirable. > your v4-0001-v3-0001-substring.patch is not the same as my v3-0001-add-argument-name-to-function-substring-and-subst.patch for example: - + substring ( string text FROM pattern text FOR escape text ) - text + text can you make sure v4-0001-v3-0001-substring.patch the same as v3-0001-add-argument-name-to-function-substring-and-subst.patch. because I tried git am On Tue, Apr 1, 2025 at 6:22=E2=80=AFAM David G. Johnston wrote: > > On Tue, Mar 18, 2025 at 9:04=E2=80=AFPM jian he wrote: >> >> >> new patch attached. >> > > I've done v4 with a delta patch. > > Decided to standardize on calling the SQL Similar To regular expression e= scape replaceable "escape" everywhere. > > Instead of fully documenting the obsolete syntax I added a note explainin= g the keyword choice difference. Removed mention of it completely from the= Pattern Matching portion of the documentation - that section has enough go= ing on. > > I also add "Same as" references for the two pairs of entries. Not marrie= d to them but they do seem warranted; having Pattern Matching be required r= eading to make that connection seems undesirable. > your v4-0001-v3-0001-substring.patch is not the same as my v3-0001-add-argument-name-to-function-substring-and-subst.patch for example: - + substring ( string text FROM pattern text FOR escape text ) - text + text can you make sure v4-0001-v3-0001-substring.patch the same as v3-0001-add-argument-name-to-function-substring-and-subst.patch. because I tried git am On Tue, Apr 1, 2025 at 6:22=E2=80=AFAM David G. Johnston wrote: > > On Tue, Mar 18, 2025 at 9:04=E2=80=AFPM jian he wrote: >> >> >> new patch attached. >> > > I've done v4 with a delta patch. > > Decided to standardize on calling the SQL Similar To regular expression e= scape replaceable "escape" everywhere. > > Instead of fully documenting the obsolete syntax I added a note explainin= g the keyword choice difference. Removed mention of it completely from the= Pattern Matching portion of the documentation - that section has enough go= ing on. > > I also add "Same as" references for the two pairs of entries. Not marrie= d to them but they do seem warranted; having Pattern Matching be required r= eading to make that connection seems undesirable. > can not build docs based on your v4-0001. your v4-0001-v3-0001-substring.patch is not the same as my v3-0001-add-argument-name-to-function-substring-and-subst.patch for example: - + substring ( string text FROM pattern text FOR escape text ) - text + text because I tried git am v3-0001-add-argument-name-to-function-substring-and-subst.patch. patch -p1 < v4-0002-v3-0002-delta.patch Then there are several places that differ, it doesn't seem easy to resolve the difference. Can you make sure v4-0001-v3-0001-substring.patch the same as v3-0001-add-argument-name-to-function-substring-and-subst.patch, then I can review your delta patch.