Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqQkU-0000tT-S6 for pgsql-committers@arkaria.postgresql.org; Tue, 21 Mar 2017 20:51:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cqQkU-0001Lz-7n for pgsql-committers@arkaria.postgresql.org; Tue, 21 Mar 2017 20:51:22 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cqQkF-0000ZH-02; Tue, 21 Mar 2017 20:51:07 +0000 Received: from jiboia.ensmp.fr ([194.214.158.137] helo=cc-tupan-roaming-a.ensmp.fr) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqQk7-000675-Lc; Tue, 21 Mar 2017 20:51:05 +0000 Received: from cri.ensmp.fr (149.200.219.88.rev.sfr.net [88.219.200.149]) (authenticated bits=0) by cc-tupan-roaming-a.ensmp.fr (8.15.2/8.15.1/JMMC-22/Oct/2013) with ESMTPSA id v2LKokqM011337 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 21 Mar 2017 21:50:50 +0100 Date: Tue, 21 Mar 2017 21:50:45 +0100 (CET) From: Fabien COELHO X-X-Sender: fabien@lancre To: Andres Freund cc: Andrew Dunstan , pgsql-committers@postgresql.org, PostgreSQL Developers Subject: Re: [HACKERS] pgsql: Add missing support for new node fields In-Reply-To: <20170321062850.koa557zw3gqyl4lm@alap3.anarazel.de> Message-ID: References: <20170321062850.koa557zw3gqyl4lm@alap3.anarazel.de> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Miltered: at cc-tupan-roaming-a.ensmp.fr with ID 58D19226.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Auth: USER-ID fabien.coelho X-j-chkmail-Enveloppe: 58D19226.000 from 149.200.219.88.rev.sfr.net/149.200.219.88.rev.sfr.net/88.219.200.149/cri.ensmp.fr/ X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Hello Andres, >> It is not done yet, but it looks that it can work in the end with limited >> effort. Currently it works for copy & equal. > > It'd have to do out/read as well imo. Sure. This part is WIP, though. >> Is there some interest to generate the x00kB of sources rather than edit >> them everytime, or forgetting it from time to time, or does everyone like it >> as it is? > > From my POV yes. But it's not quite as trivial as just generating it > based on fields. Some fields are intentionally skipped, e.g. location, > for equalfuncs, but not copy/out/readfuncs. So there needs to be a way > to specify such special rules. Indeed, I noticed these particularities... For some case it can be automated with limited input. For really special cases (eg a few read/out functions) , the script is told to skip some node types and the special manual version is taken from the file instead of being generated. -- Fabien. -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers