Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kK2MK-0004vH-D3 for pgsql-general@arkaria.postgresql.org; Sun, 20 Sep 2020 16:38:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kK2MI-000856-BE for pgsql-general@arkaria.postgresql.org; Sun, 20 Sep 2020 16:38:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kK2MI-00084z-3f for pgsql-general@lists.postgresql.org; Sun, 20 Sep 2020 16:38:38 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kK2ME-00020M-0a for pgsql-general@lists.postgresql.org; Sun, 20 Sep 2020 16:38:37 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1kK2MA-0008R8-EP; Sun, 20 Sep 2020 12:38:30 -0400 Date: Sun, 20 Sep 2020 12:38:30 -0400 From: Bruce Momjian To: Tom Lane Cc: tutiluren@tutanota.com, pgsql-general@lists.postgresql.org Subject: Re: Can I get some PostgreSQL developer feedback on these five general issues I have with PostgreSQL and its ecosystem? Message-ID: <20200920163830.GA27101@momjian.us> References: <1176808.1600119597@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1176808.1600119597@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Sep 14, 2020 at 05:39:57PM -0400, Tom Lane wrote: > tutiluren@tutanota.com writes: > > 1. All non-ANSI characters are turned into "?"s for application_name. > > Yeah, that's hard to do much with unfortunately. We cannot assume that > all databases in an installation share the same encoding, so for globally > visible strings like application_name, the only safe solution is to > restrict them to ASCII. > > On the other hand, the very same thing could be said of database names > and role names, yet we have never worried much about whether those were > encoding-safe when viewed from databases with different encodings, nor > have there been many complaints about the theoretical unsafety. So maybe > this is just overly anal-retentive and we should drop the restriction, > or at least pass through data that doesn't appear to be invalidly > encoded. I think the issue is that role and database names are controlled by privileged users, while application_name is not. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee