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 1kK2vz-0006Jw-QO for pgsql-general@arkaria.postgresql.org; Sun, 20 Sep 2020 17:15:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kK2vy-0005nS-Np for pgsql-general@arkaria.postgresql.org; Sun, 20 Sep 2020 17:15:30 +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 1kK2vy-0005nL-Gl for pgsql-general@lists.postgresql.org; Sun, 20 Sep 2020 17:15:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kK2vw-0002KT-Dm for pgsql-general@lists.postgresql.org; Sun, 20 Sep 2020 17:15:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 08KHFQnH850091; Sun, 20 Sep 2020 13:15:26 -0400 From: Tom Lane To: Bruce Momjian 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? In-reply-to: <20200920163830.GA27101@momjian.us> References: <1176808.1600119597@sss.pgh.pa.us> <20200920163830.GA27101@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Sun, 20 Sep 2020 12:38:30 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <850089.1600622126.1@sss.pgh.pa.us> Date: Sun, 20 Sep 2020 13:15:26 -0400 Message-ID: <850090.1600622126@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Bruce Momjian writes: > On Mon, Sep 14, 2020 at 05:39:57PM -0400, Tom Lane wrote: >> 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. That's certainly an argument against a completely laissez-faire approach, but if we filtered invalidly-encoded data on the reading side, it seems like we would be in good enough shape. regards, tom lane