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 1tpr3S-00DGad-1R for pgsql-general@arkaria.postgresql.org; Wed, 05 Mar 2025 15:53:06 +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 1tpr3Q-00Epkq-NU for pgsql-general@arkaria.postgresql.org; Wed, 05 Mar 2025 15:53:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tpr3Q-00Ephv-CJ for pgsql-general@lists.postgresql.org; Wed, 05 Mar 2025 15:53:04 +0000 Received: from mail-il1-x129.google.com ([2607:f8b0:4864:20::129]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tpr3O-00187U-1R for pgsql-general@lists.postgresql.org; Wed, 05 Mar 2025 15:53:03 +0000 Received: by mail-il1-x129.google.com with SMTP id e9e14a558f8ab-3d03d2bd7d2so64533385ab.0 for ; Wed, 05 Mar 2025 07:53:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741189982; x=1741794782; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=8t+v74FnO6RKLUOn99SIxsaGfVhGlsY+EWlc4A/rvKE=; b=RjkNwaBVj10ENF5AdAJPJycBOjKnj4lyj7DnBVzHLnqsMyQ0L7MsSKTHmdC5duWGtA JbiqdCw4dWlKkumolCIKLRcjFsQHr0KGjL1kQR82A2EVEoNGAbabACREAgm3xVDKdh3O GnDuhs7tNLwqpbPeLUk11kHOIIHIhjeDQlScMs8bpJctA3FYrteysiSakS9VWLDLrOVD kmd9tUb7rph/Wp1n71lEdRwDHZFonytJwBYTbxWYnSwT8yETmqcru1oQz0MVh6hyC1hv U46+f8eS+Vec3HVKxZpSin9hVzKuLHntFmVIA6233HNuStTvQEIRX8rQyenbQXMHniix 3N/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741189982; x=1741794782; h=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=8t+v74FnO6RKLUOn99SIxsaGfVhGlsY+EWlc4A/rvKE=; b=ZNVE/puAl/k7PMn9jxkjD8IACQ8v0OSQjWo/0XU188z126nB8vf1d3SatjZ52GSOMp NE9UIQU5BhFyGyqWU+r9wwvxZVufL5fDhPTEEKvaWb8eg5xxDi21K/JmJgpYvlVkvPyW Gkm5C0c7fXwX/h7qlnO94l34RXl5mt4+yE5EnxO50sV61VhYaOq9RIwYQMRqhsne95Pg 9PPOrOBKEzj3u4/zSq+cLh7sYNNdUuIUN96jEQB3BvQ8EPXCEoNfOHZ1Hzfj6YMTBTtx iCPegoJU01eI/KRPkjVgDhsRwfsxYmGo9sf1E9cFbSVv2bxFHU7TN0nsDVWWaSnmFJVl rFuw== X-Gm-Message-State: AOJu0YyG7S9VOziyGevXmoQv3f/6VsVt5WqXA0R4MXHr+GCWdXBLv1CH /vmwib9xIUSRQJZj5Bxv36y2yCFRs+xHPQrxeMwU5xGaWNdHdDWm7Sq13tshyiCOru8zC3pgxIQ BEyB0GIvwQupG0jkNy7dFzZLGnv5l1Q== X-Gm-Gg: ASbGncvZP8+06mv1iFn3QRdEd7WrpT7jW6gxRrIQUckp0ooIQYil4jKfuG+I8gupYRh gXJo7IRazx38t7EBtvkHafUNGMormM/C6COhzNXjhWZ0gVfpmF+uLDPr/zBjHrpeptNSAdRNgaf EJb3ElRwoD2wipI1iPsj2UdDDZKkAIf2I07apkjv/MrSbz7anoAuplRGo1NK4= X-Google-Smtp-Source: AGHT+IFlOp8HE/H4bcrftb4Cd51ragdmbZQLo6/uBznzR7wjTImJNPovrfNGO6ZacaB10wzkYxjWAwb37g5pDLP/ao0= X-Received: by 2002:a05:6e02:216d:b0:3d3:f4fc:a291 with SMTP id e9e14a558f8ab-3d42b9a63fdmr37249335ab.19.1741189981925; Wed, 05 Mar 2025 07:53:01 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Greg Sabino Mullane Date: Wed, 5 Mar 2025 10:52:24 -0500 X-Gm-Features: AQ5f1Jobs4fZ6gd4bfY0y1ADgyw18k2d6FLcThTP4jIKoMfDNPrfUW_CYeM63zQ Message-ID: Subject: Re: end of COPY To: Marc Millas Cc: "pgsql-general@lists.postgresql.org" , Ron Johnson Content-Type: multipart/alternative; boundary="0000000000005bfba0062f9a6265" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000005bfba0062f9a6265 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Mar 5, 2025 at 10:22=E2=80=AFAM Marc Millas wrote: > Then the flow contains a single line: \. to my understanding this means > end of the copy > > but, Postgres generates an error : invalid input syntax for type numeric > "\." > This can happen when you send TWO backslashes and a dot, rather than a single backslash and a dot. Cheers, Greg -- Crunchy Data - https://www.crunchydata.com Enterprise Postgres Software Products & Tech Support --0000000000005bfba0062f9a6265 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Mar 5, 2025 at 10:22=E2=80=AFAM M= arc Millas <marc.millas@mokadb= .com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">
Then= the flow contains a single line: \. to my understanding this means end of = the copy=C2=A0

but, Postgres generates an error=C2= =A0: invalid input syntax for type numeric "\."

This can happen=C2=A0when you send TWO backslash= es and a dot, rather than a single backslash and a dot.

Cheers,
Greg

--
Crunchy Data - https://www.crunchy= data.com
Enterprise Postgres Software Products & Tech Sup= port

--0000000000005bfba0062f9a6265--