Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iHZKf-0004Kg-3O for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Oct 2019 20:10:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iHZKd-0006Gs-CJ for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Oct 2019 20:10:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iHZIG-0002jK-7J for pgsql-hackers@lists.postgresql.org; Mon, 07 Oct 2019 20:07:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iHZI9-00084k-UR for pgsql-hackers@lists.postgresql.org; Mon, 07 Oct 2019 20:07:39 +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 x97K7U2q007841; Mon, 7 Oct 2019 16:07:30 -0400 From: Tom Lane To: Peter Eisentraut cc: Andres Freund , Noah Misch , pgsql-hackers@lists.postgresql.org Subject: Re: expressive test macros (was: Report test_atomic_ops() failures consistently, via macros) In-reply-to: References: <20191005190729.6sx7g23ifdu65s7s@alap3.anarazel.de> <2144.1570471061@sss.pgh.pa.us> Comments: In-reply-to Peter Eisentraut message dated "Mon, 07 Oct 2019 21:58:08 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7839.1570478850.1@sss.pgh.pa.us> Date: Mon, 07 Oct 2019 16:07:30 -0400 Message-ID: <7840.1570478850@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > On 2019-10-07 19:57, Tom Lane wrote: >> I'd just put them all in c.h. I see no reason why a new header >> is helpful. > Assert stuff is already in there, but surely stuff that calls elog() > doesn't belong in there? True, though I had the impression that Andres wanted to propose things that would work in either frontend or backend, presumably with different implementations. You could argue it either way as to whether to have that in c.h (with an #ifdef) or separately in postgres.h and postgres_fe.h. regards, tom lane