Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTaOZ-0007ni-DI for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Jan 2017 20:30:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cTaOZ-00011p-0A for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Jan 2017 20:30:19 +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 1cTaOX-0000yR-A1 for pgsql-hackers@postgresql.org; Tue, 17 Jan 2017 20:30:17 +0000 Received: from mail-vk0-x231.google.com ([2607:f8b0:400c:c05::231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cTaOT-0003Hg-Dq for pgsql-hackers@postgresql.org; Tue, 17 Jan 2017 20:30:16 +0000 Received: by mail-vk0-x231.google.com with SMTP id x75so100391329vke.2 for ; Tue, 17 Jan 2017 12:30:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=4+WeBKvSKzFgzNyZ6RP1FbNmyCPjGyXgL1Y8NviQdps=; b=jOwAUOftpJhH2KkrXNSR/p+RIGE8v/bkfcNZUkIrJwHu23DjeucOG29JQoXJ1vkOkf IyGKo6e7VNFYQlYbwCaK0GFuG/9nxaVOaV6WQjCk8QYdpVbIv9lrpyph4y1qhabpfEpd GVoHiMTnhwBQKTorD4fL217rH52LMITDvsn4hYVOqNO6Y4qSTZ35lqFflw4ymMieF/yl 2KIuM4ah1+zJhLAP/3+tSfJE38GIG1/aGjNBzcbCeTsrXPfYi3zX6AJ6ptLPbva8QjdP JIsSU5mC6XsL5j4agzZabEYDrqaeiaEmn6tP4VMdvrYQ9J5eFwO+9GkdYU23zN57eCJx rmSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=4+WeBKvSKzFgzNyZ6RP1FbNmyCPjGyXgL1Y8NviQdps=; b=PrreYHV30hZiZTTgebF+mfVJfd21R5Psfy+kXwKgetlVR9ZxWNBtexAQIkWd2xWNa5 HZR/4qWa4h9451NsY60/MD/VOKpLbwAfQeyAAYmyW1qVY/jGwfWNC+ang19hDyhHyTws JuQaPGu39xbHINzFxdXWhD/G0a5CNa7jF9GQl21sZoMi0kf5rGc0/0QAbaQxTXvJNlEd aC1LE4Gn0qcwMPNznQGfSHqZVNn0ef3JH+z2MW3IpCBwUocu83qm+Wd/JpshSRliIliK z6Uq+0tMnBZSwSml8QFyncKRUINc9Nfb7n+wUnDd6Z3GXs4efQlKSmFu48TogwgxMzkF FsuA== X-Gm-Message-State: AIkVDXLo2IcZCLObyxvPaJ1vJyv2pXTiYgf1JWQoIkYiM1c7CxwOibTCLtqRwR5R9x1ra6zm X-Received: by 10.31.158.9 with SMTP id h9mr19408659vke.114.1484685011925; Tue, 17 Jan 2017 12:30:11 -0800 (PST) Received: from alvin.alvh.no-ip.org ([181.42.254.77]) by smtp.gmail.com with ESMTPSA id j31sm3569168uaa.0.2017.01.17.12.30.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jan 2017 12:30:11 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 0D1E7631; Tue, 17 Jan 2017 17:30:00 -0300 (CLST) Date: Tue, 17 Jan 2017 17:30:00 -0300 From: Alvaro Herrera To: Tom Lane Cc: Peter Eisentraut , pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Generate fmgr prototypes automatically Message-ID: <20170117203000.2kxllmwznejbp3a6@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3211.1484683668@sss.pgh.pa.us> User-Agent: NeoMutt/20170113 (1.7.2) X-Pg-Spam-Score: -2.6 (--) 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 Tom Lane wrote: > Alternatively ... is there a specific reason why you chose to make > builtins.h the key inclusion file for this change, rather than having > callers include fmgrprotos.h directly? It seems like the stuff remaining > in builtins.h is just a laundry list of random utility functions. > Maybe dispersing those to other headers is the thing to do. It is possible to replace many occurrences of builtins.h with fmgrprotos.h. I just tried this git grep -l 'include.*utils/builtins.h' -- *.c | xargs perl -pi -e 's{utils/builtins.h}{utils/fmgrprotos.h}' There's a large number of changes that the oneliner produces that must be reverted for the compile to be silent, but a large portion can remain. (I only tried src/backend/access). Anyway I support the idea of creating other header files for specific purposes, such as ruleutils.h, varlena.h, etc. (I am against creating a header file that contains commonly used macros such as CStringGetTextDatum together with varstr_sortsupport. I think the latter should have its own place). -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers