Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cLadt-0005Hv-81 for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Dec 2016 19:09:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cLads-000391-9Q for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Dec 2016 19:09:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cLacT-0001XD-1R for pgsql-hackers@postgresql.org; Mon, 26 Dec 2016 19:07:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cLacQ-0002qm-EB for pgsql-hackers@postgresql.org; Mon, 26 Dec 2016 19:07:36 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uBQJ7UIe009598; Mon, 26 Dec 2016 14:07:30 -0500 From: Tom Lane To: Alvaro Herrera cc: Michael Paquier , Joe Conway , PostgreSQL mailing lists Subject: Re: Incautious handling of overlength identifiers In-reply-to: <20161226183647.hjlzi2vqyqvyevsa@alvherre.pgsql> References: <20161226183647.hjlzi2vqyqvyevsa@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 26 Dec 2016 15:36:47 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9596.1482779250.1@sss.pgh.pa.us> Date: Mon, 26 Dec 2016 14:07:30 -0500 Message-ID: <9597.1482779250@sss.pgh.pa.us> X-Pg-Spam-Score: -5.0 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Alvaro Herrera writes: > I also admit it didn't occur to me to test the function(s) against > overlength input when developing it. I wouldn't object to adding code > to deal with overlength identifies, but I'm not really sure I would > choose truncation over reporting an error. But whatever it'd be, it'd > be at that level, not at the lower (hash function) level. Yeah, I'm now convinced that whatever we do about this, if we do anything, needs to be at a higher code level. It's not hashname()'s job to prevent use of overlength names. I'll go remove the Assert. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers