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 1kLVRA-0001kj-Gd for pgsql-committers@arkaria.postgresql.org; Thu, 24 Sep 2020 17:53:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kLVR8-0007fh-2W for pgsql-committers@arkaria.postgresql.org; Thu, 24 Sep 2020 17:53:42 +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 1kLVR7-0007fa-TA for pgsql-committers@lists.postgresql.org; Thu, 24 Sep 2020 17:53:41 +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 1kLVR5-000620-AQ for pgsql-committers@lists.postgresql.org; Thu, 24 Sep 2020 17:53:41 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1kLVR3-0002gh-6u; Thu, 24 Sep 2020 13:53:37 -0400 Date: Thu, 24 Sep 2020 13:53:37 -0400 From: Bruce Momjian To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Improve the error message for an inappropriate column definition Message-ID: <20200924175337.GB22807@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Sep 22, 2020 at 02:49:22PM +0000, Tom Lane wrote: > Improve the error message for an inappropriate column definition list. > > The existing message about "a column definition list is only allowed for > functions returning "record"" could be given in some cases where it was > fairly confusing; in particular, a function with multiple OUT parameters > *does* return record according to pg_proc. Break it down into a couple > more cases to deliver a more on-point complaint. Per complaint from > Bruce Momjian. > > Discussion: https://postgr.es/m/798909.1600562993@sss.pgh.pa.us Uh, did you not want to backpatch this? -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee