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.96) (envelope-from ) id 1vo1Nr-00EmMa-1P for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Feb 2026 15:35:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vo1Nq-00HaGg-1r for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Feb 2026 15:35:06 +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.96) (envelope-from ) id 1vo1Kd-00HWQz-1U for pgsql-bugs@lists.postgresql.org; Thu, 05 Feb 2026 15:31:47 +0000 Received: from mail-oa1-x32.google.com ([2001:4860:4864:20::32]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vo1Ka-00000001D3B-2VDN for pgsql-bugs@lists.postgresql.org; Thu, 05 Feb 2026 15:31:46 +0000 Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-40438e0cba6so725050fac.1 for ; Thu, 05 Feb 2026 07:31:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1770305503; cv=none; d=google.com; s=arc-20240605; b=OJlgzaGfFvEGpiWu4FvZ+gY2SPiqBNkjDlNkxw5uhywS8WfTZfT2DSqv8bgWxjq3pI 1YVGiG7IoSZ+z25GocICYCyafKpI0h3W/25pXtU/atz7r4ysF52og5o02oRzdvycoE6m s4d150eYDHEFcuGFGbD0bXbxZLW4LrJ3pbNIeG0+dsIi2HgksQ5JezvGwAm9UmQiGp+c vSj3P6/3J8QET90tejykmmRXF1DySndCCLMM4ghtfm9gfMajdsO70f2EOlgRu2vYTL4w Otx/LS1sUH/5/m22bjhr/NrMFnwpQcTLLUU4Hho/I/Jt41rbwLGT0QYOFiDBziTrwDx0 hBYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :dkim-signature; bh=xMq2+sKa0IMik6ZBmaagLx7cxS7yphtKsv9lJpuxKak=; fh=Abh7s47HXqwnQFqfBVHEtrGnu6s5BVfYIPV7Hw88iEc=; b=QLXYWyYvdtkhsgdJ8F/5G1kjSahLH9zLecwJFGdZwwgf79xv4Xm/lh5ySD3vmJh+Md mOHP7PREIQ0HpJeeM30MmXZusk+iyN3tsMs1GdBaFTIqTE8YsUNfOWnQDtJbSdq06UjS mdrZUVq1+P+U589oZdO8B+ZeVGNrAaV9ZGV821o4qud4sJ+Vft1QWf7D1aYDH1X1yRXJ IYzyv0QyHKf9wo21wwEuxL7HUaFDulrE6jmzO3mBeLLM8+v5vTei2cwPDj1hEPzzsG8L hjzVlWH5/Qqde/Q5km4mu5614ft3ii4q2lTsf1MS9E4JEk0BiXTavXeskHn1dlpXWKDI Pvzw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770305503; x=1770910303; darn=lists.postgresql.org; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=xMq2+sKa0IMik6ZBmaagLx7cxS7yphtKsv9lJpuxKak=; b=AaXXTRJjPwCahbJXcWU5hdkwVMKkSStbQpDShICxBvjoWWbkbwGj0zB1iuS8okLpJd Dw5kYdY3V/RgEkBBHx/+hgxgE4ory2HT8kwjis6lPnE0CtCNnCLm3kQRQnpjCJ+Lq31y VKRnGdtZZKCYR+2laiO/lXrK4I2CbU+EuARoBSXyY+H4aWefiZ5DgsZWHmc9AUtmRDk4 TtRlfHhvqq0V3z+VxhtlOlVsNbFnvMFw0M4nniz44Pc3tGDQVhFQq5+4ALo6oxa+Bznr NIt2gDywSpH6Pg+rhLnP+CWT+cczVl8vBW3ZwSkDj0E8hggM97BwnD5Nl7p8fgVf6ZLj bhsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770305503; x=1770910303; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xMq2+sKa0IMik6ZBmaagLx7cxS7yphtKsv9lJpuxKak=; b=rDg5zae07kSaD7XvHixyLGFRtLl2FG4NERFpILotRg8rL6VFkD+STZjaWgaFQ3SKKh GH9PdPT48goNae5IS9/oHMtkTg8V1Ft0tWGsKbNtycy4EkhOpWVbXOC0WUOM61VpKUUQ TxPqfyr0qXtx063t6OsoEqFnFh2AmWgMJYeFFO0AEb+Yej+BM8N8IcQX6t2/MjiGQnB3 fSclpqHCAl61tZb9xOr99xFX/Hdzt7Am4Pnyf5J5mIeamLlQnqCvphqajeuSa44BNYSH CJ/MTABh39n0LWVNNDdZm1lOh/UbFtb8ACT0I8NxMbav4rIFayVFsEHW8E1ZEynDf+e4 qDeQ== X-Forwarded-Encrypted: i=1; AJvYcCWpzCaYmt0yuOHOaS3PXJd3CFfLGonfGdWuPxuZ1PP3Tb7dE4wQGvch900OJFRXr6tC8jQg5SsV2cIh@lists.postgresql.org X-Gm-Message-State: AOJu0YxwsEFl4uf6C6X8PtPw1ZyrEGudOGhKCp/QpLJAWHq9lyCvYHUu kJNzXOrQyQ1F38/UzXlNXmPQWqMkZHRhezMRRB+KWRF4+2GVskS4MBcvzlN4oBH8a3Swg6++rSK FIERF2MZ0c+IzxnG+UclFVvmgwj/IVQpIS7H7 X-Gm-Gg: AZuq6aJof/pfOnPB+4JAGJjyEO2J4o6lhByWJpM4ai+DpIYMBsmF7JTeWDQ7ybaJ3QK m9yiLcOL02wltIX0U13sZEtK3RbIEIvaPEjMCjdnpQaVT0G62NT+PW2M3dYjv6Zh8+MGinbV9no c27eR+rRQ94Afd23pQAW2xiZ/9owUsn36IrLruDfTwaI+4O+hcxZxxxfQ7UiQL5UftXjf1BSUsE /zyTswEcVTSIMzULs+r9m18okysrn4G5RVxc57RIS/EkLJEQVWjz3eXKXmSyv6O9cIfeT1XObU7 Dn/X6vGUzmuqNcnC1Y6dxa/IgSyBzqzfKuglKy+t X-Received: by 2002:a05:6871:e3:b0:36e:8381:db00 with SMTP id 586e51a60fabf-40a53acba58mr3779997fac.9.1770305502507; Thu, 05 Feb 2026 07:31:42 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a05:6802:3615:b0:61e:2744:d741 with HTTP; Thu, 5 Feb 2026 07:31:40 -0800 (PST) In-Reply-To: <19394-0997a5bdb836c074@postgresql.org> References: <19394-0997a5bdb836c074@postgresql.org> From: "David G. Johnston" Date: Thu, 5 Feb 2026 08:31:40 -0700 X-Gm-Features: AZwV_QgUFQFXhFLbo2kJNMC0jFMWDm1sl8OSE3xbXHwYy_3nPLfdxkNTaCl0SGc Message-ID: Subject: Re: BUG #19394: error in ecpg To: "alex@ilona.su" , "pgsql-bugs@lists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000009ef97e064a155e85" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000009ef97e064a155e85 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thursday, February 5, 2026, PG Bug reporting form wrote: > The following bug has been logged on the website: > > Bug reference: 19394 > Logged by: Alexey G > Email address: alex@ilona.su > PostgreSQL version: Unsupported/Unknown > Operating system: linux > Description: > > I have database 4duksh on 182.168.123.4. Postgresq 13. > > If i set > EXEC SQL CONNECT TO 4duksh@192.168.123.4 AS con1 USER postgres; > i get error near "4" > > If i set > EXEC SQL CONNECT TO db4duksh@192.168.123.4 AS con1 USER postgres; > as well > > This is not a bug. The options and limitations for writing the target are documented here. https://www.postgresql.org/docs/current/ecpg-connect.html#ECPG-CONNECTING In PostgreSQL, plain identifiers cannot begin with a number. https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-= IDENTIFIERS Apparently target is a bit looser in what it allows since I=E2=80=99d have = expected both to require quoting. David J. --0000000000009ef97e064a155e85 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thursday, February 5, 2026, PG Bug reporting form <noreply@postgresql.org> wrote:
The following bug has been logged on the website:

Bug reference:=C2=A0 =C2=A0 =C2=A0 19394
Logged by:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Alexey G
Email address:=C2=A0 =C2=A0 =C2=A0 alex@il= ona.su
PostgreSQL version: Unsupported/Unknown
Operating system:=C2=A0 =C2=A0linux
Description:=C2=A0 =C2=A0 =C2=A0 =C2=A0

I have database 4duksh on 182.168.123.4. Postgresq 13.

If i set
EXEC SQL CONNECT TO 4duksh@192.168.= 123.4 AS con1 USER postgres;
i get error near "4"

If i set
EXEC SQL CONNECT TO db4duksh@192.= 168.123.4 AS con1 USER postgres;
as well


This is not a bug.=C2=A0 The options and l= imitations for writing the target are documented here.

=

In PostgreSQL, plain iden= tifiers cannot begin with a number.


Apparently target is= a bit looser in what it allows since I=E2=80=99d have expected both to req= uire quoting.

David J.

--0000000000009ef97e064a155e85--