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 1rAFDF-005cgk-R1 for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Dec 2023 20:06:42 +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 1rAFDE-000zPk-7k for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Dec 2023 20:06:40 +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 1rAFDD-000zPc-Qy for pgsql-hackers@lists.postgresql.org; Mon, 04 Dec 2023 20:06:39 +0000 Received: from mail-qv1-xf2a.google.com ([2607:f8b0:4864:20::f2a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rAFD8-008nrX-7X for pgsql-hackers@postgresql.org; Mon, 04 Dec 2023 20:06:38 +0000 Received: by mail-qv1-xf2a.google.com with SMTP id 6a1803df08f44-67a9be1407aso23123296d6.0 for ; Mon, 04 Dec 2023 12:06:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dunslane-net.20230601.gappssmtp.com; s=20230601; t=1701720393; x=1702325193; darn=postgresql.org; h=in-reply-to:subject:from:references:cc:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=+ZaxohlTs99vRjJ18IwCzXF1xtTss/40lIMgmy8EMGk=; b=GZAKZSVoFAEM1mcdzdbiNt3VlBstksaC3whTQOuWmbxYLxlc/jWyD4ygf1xJDDU4nh geVIixP4bYLqk0vSavA5Y6RMY9a1QwLCKv3ZcmFgFWJ8XhHUb0aQHO+a71Z3pYtSZi0J 9pbCMuni8s59Bm3JcdmL+oeSK+CtOQRWn1BBomghrIFstjaO9SnRdQLyOFOC+slFeEz0 f+dNC2uIRseA4wMiQ2P9i9e7GXunlIRDdBewhcVDvy3tWl6ZqomxYvwxRbLaIJssOzdB iOUAnORAado6FVWYOYE1eNIIgsZ7q3W2KTrdohVa6OT0TjnRYuPzTC9R206CEgFbU4sS Tfug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701720393; x=1702325193; h=in-reply-to:subject:from:references:cc:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=+ZaxohlTs99vRjJ18IwCzXF1xtTss/40lIMgmy8EMGk=; b=AxmKH/goyEhFfdZ+bNoAqQeigQ2Qfwq4QD3cvXId+ETCvTqFkpF+b5TsA1VxYUIlnJ WTCoPbpCMUu0S7PBClMaMep8xofDwZOaS958a4sgtBDe2JGDfoFyfSK6c4VwDEdIiGHY jrjJKMJ+/OL5FiOuPZnphHKvSOxe7SznEVZPSsS5rC5D3ub3eY/A3IjE9ODbX4MPRoz7 bOVEgsDVC5xmOJLJR5Ai22i8pv22BtiNBFY/jcCRZUiTzGC6zk7NVW4Kdt30qkHaL+rY dDafCTO9abo/hQ1x0SHKH3Df97Yj4QxehmyTSw3ny8hUfmu/o5hxxW77EAyQtCft+zod 05BA== X-Gm-Message-State: AOJu0Yzr6yJxIcG80GR2ilBwvU5f9ILAwPNjzj+4uIEpaEUzjV4Eds9t gQJNl5O/QV4iGB9d6kZNstT4RQ== X-Google-Smtp-Source: AGHT+IGwXl4AyhFzcCenYx769yhZyko/0fZSTVb9vdv+8C/22AkUWifkpSo2nZ+edAbRLo1NAJaLzA== X-Received: by 2002:a0c:d7cb:0:b0:67a:a721:cb1a with SMTP id g11-20020a0cd7cb000000b0067aa721cb1amr81913qvj.123.1701720392718; Mon, 04 Dec 2023 12:06:32 -0800 (PST) Received: from ?IPV6:2605:a601:91bc:f600::2bb? ([2605:a601:91bc:f600::2bb]) by smtp.googlemail.com with ESMTPSA id y2-20020a0cd982000000b0067abfe5709dsm1559474qvj.139.2023.12.04.12.06.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Dec 2023 12:06:32 -0800 (PST) Content-Type: multipart/alternative; boundary="------------f5lDIl60ViBdY9TBfX6jm40d" Message-ID: <5c84b70b-ba18-c45d-dbbe-612fa229b2ce@dunslane.net> Date: Mon, 4 Dec 2023 15:06:31 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US To: Davin Shearer , Joe Conway Cc: PostgreSQL-development References: <3853387.1701096982@sss.pgh.pa.us> <3a98decf-3fe3-4b49-9b68-fda01338872c@sedlakovi.org> <24e3ee88-ec1e-421b-89ae-8a47ee0d2df1@joeconway.com> <7117a356-916c-4cf3-bad8-861490e65dcf@joeconway.com> <9c77b6fa-ee88-b2e6-0fa7-4fc81721da35@dunslane.net> <41dcba92-1075-e5e5-cb99-36711abf6cec@dunslane.net> From: Andrew Dunstan Subject: Re: Emitting JSON to file using COPY TO In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------f5lDIl60ViBdY9TBfX6jm40d Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2023-12-04 Mo 13:37, Davin Shearer wrote: > Looking great! > > For testing, in addition to the quotes, include DOS and Unix EOL, \ > and /, Byte Order Markers, and mulitbyte characters like UTF-8. > > Essentially anything considered textural is fair game to be a value. Joe already asked you to avoid top-posting on PostgreSQL lists. See > for an explanation. We don't process BOMs elsewhere, and probably should not here either. They are in fact neither required nor recommended for use with UTF8 data, AIUI. See a recent discussion on this list on that topic: cheers andrew -- Andrew Dunstan EDB:https://www.enterprisedb.com --------------f5lDIl60ViBdY9TBfX6jm40d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit


On 2023-12-04 Mo 13:37, Davin Shearer wrote:
Looking great!

For testing, in addition to the quotes, include DOS and Unix EOL, \ and /, Byte Order Markers, and mulitbyte characters like UTF-8.

Essentially anything considered textural is fair game to be a value.


Joe already asked you to avoid top-posting on PostgreSQL lists. See <http://idallen.com/topposting.html> for an explanation.

We don't process BOMs elsewhere, and probably should not here either. They are in fact neither required nor recommended for use with UTF8 data, AIUI. See a recent discussion on this list on that topic: <https://www.postgresql.org/message-id/flat/81ca2b25-6b3a-499a-9a09-2dd21253c2cb%40unitrunker.net>


cheers


andrew


--
Andrew Dunstan
EDB: https://www.enterprisedb.com
--------------f5lDIl60ViBdY9TBfX6jm40d--