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 1tsGSA-00HILZ-RO for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Mar 2025 07:24:35 +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 1tsGS9-00GKb8-IB for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Mar 2025 07:24:33 +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 1tsGS9-00GKZy-6k for pgsql-hackers@lists.postgresql.org; Wed, 12 Mar 2025 07:24:33 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tsGS5-002OO3-09 for pgsql-hackers@lists.postgresql.org; Wed, 12 Mar 2025 07:24:32 +0000 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5e64700a38cso5907080a12.1 for ; Wed, 12 Mar 2025 00:24:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1741764269; x=1742369069; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=0WPZw0CvIAW1jE+QisxEqRNSu/+RpXV2RzMiBFvNoQE=; b=Ck1L9JRfu6KYF2bP70iXtgb3Ywfla1yM3lTGBdbr/rLHJ4c9wh0iU7ce8dS/qKqCcB LRKNFOqkW92VaE/9fuJwyhhFPalh+sIKauQSBD9lj4WUdErwcR6AM3Gw1opesQQkKGp/ k8fOyTZyHLQFIp/eictITSp5S6MuYj/HpBAXcFUqfnuQCShEj0ZlmWmJgEFZEvgzB37p QdQZKv6BXkGN8BpKGfG153Hrtf9U83SS8hwnEdkLjFGXOstQrOe6otSlb4LCzSumCZyX BssTQyRxE14mdT24uDzMhiaWUC3jo5ILZxUw6NAjYyxQ2JWuA389CP6/pFQTTEq1D4Zb X2lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741764269; x=1742369069; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=0WPZw0CvIAW1jE+QisxEqRNSu/+RpXV2RzMiBFvNoQE=; b=Q5ZodqZYDQrQLQABd8qOUDfU35iSKdEqxMt4+sSfEUCMoVSQ48d+BbYFyzQUsQHLXw 0ywn8/s3OJcq15pgsxhvZQ8n3O1TrM9FmePVTXrfbaUGS8nzIaxlobZRAM8zbSNmJRNW N93jvTWud2S+ExGtU1xEpUuUOh32J5i8IGQ3EoYA4A9aUGTXX13BokI6bki3DnoKhhir 0UFRAo0XFp4mWqTQ+uPeA32k4LPd40jX3yFgv7RbbqacQn3uWH/K9CyGi8eAAgjS7YOD YKzWR6KrGqc6P26AWePBdK1yePGrw9dtBfyXmFXRMpMpxK80RL59TcwR/+dZ3tooNQ5O Ei/w== X-Forwarded-Encrypted: i=1; AJvYcCW6TBcxqigCyTVezMPas1MvLFFhC67ODJ5HC4RqWPEY+H3mfD9d35RzdTEmQxShVfECghYy87nkK3I7yf+p@lists.postgresql.org X-Gm-Message-State: AOJu0YwU3r2VPSogUAHAeewPlz0qUyFqnH1avW8NCYu2SK6ZkXdtCyHK 3Ed71SRUL6HsdWhF7crZKbyXjpc/cZdQP32k7zSuslrm+gBL/Zu+TSyKnYqQq0g= X-Gm-Gg: ASbGnctp6+R/vz0hpiq2SByAHi16fj4wnMMtABJtqpL/5uq9eQCnS8feeP0mr2f5bHB CkvVawKFCxWjOc8t3yz/RXQbb+duFMs7bw5g+Y2e4uTBG8hFgJIfA9kbfgPYXP896AaS/97eaeW iQ1lSl4zUkck4voBEnppmCEExk4foALOqoELxdLUfKcjXaCUhxcoLF9cyj5Q/+R5ojiS415OiKr kb03uYtAb5RKQafiwMRdvJhUil8t7u59psZylxMjCb2e7RXJmKUIHE+3DYbU23cOPHyq9MP3L6j 7wVanXc+iXpW/NiHonpOGnkKdxPY5NKdDJkBwdSSBG9PaquIo5kyA6IhfS8f X-Google-Smtp-Source: AGHT+IFS5OXCMpCpng78/DFxDpVQu01qrG0JgE/wFNR1ah3vkXBYiH+f2xea/EFA6y91ipjS/5eVoQ== X-Received: by 2002:a05:6402:43c5:b0:5e5:dbcd:185e with SMTP id 4fb4d7f45d1cf-5e5e22dbc25mr27828407a12.13.1741764269339; Wed, 12 Mar 2025 00:24:29 -0700 (PDT) Received: from localhost.localdomain ([41.66.99.48]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5e5c766a16esm9329600a12.60.2025.03.12.00.24.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Mar 2025 00:24:28 -0700 (PDT) Message-ID: <06681f6909b0602f731bb69409f17ad912795f86.camel@cybertec.at> Subject: Re: Non-text mode for pg_dumpall From: Laurenz Albe To: Isaac Morland , Andrew Dunstan Cc: =?ISO-8859-1?Q?=C1lvaro?= Herrera , Dagfinn Ilmari =?ISO-8859-1?Q?Manns=E5ker?= , Mahendra Singh Thalor , jian he , Srinath Reddy , pgsql-hackers@lists.postgresql.org Date: Wed, 12 Mar 2025 08:24:27 +0100 In-Reply-To: References: <202503112103.fltgs54vpq6f@alvherre.pgsql> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.3 (3.54.3-1.fc41) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 2025-03-11 at 19:14 -0400, Isaac Morland wrote: > On Tue, 11 Mar 2025 at 18:37, Andrew Dunstan wrote: >=20 > > Well, JSON is supposed to be UTF8. What should we do about database=20 > > names that are not UTF8? >=20 > How can you have a database name that isn't encodeable in UTF-8? At this = point > I'm pretty sure Unicode has subsumed essentially every character ever men= tioned > in a standards document. There is a difference between "encodable" and "encoded". You'd have to fig= ure out the actual encoding of the database name and convert that to UTF-8. Yours, Laurenz Albe