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.92) (envelope-from ) id 1jFIqg-0006uD-CB for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Mar 2020 14:42:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jFIqf-00049E-6X for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Mar 2020 14:42:09 +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 1jFIqe-00048l-MG for pgsql-hackers@lists.postgresql.org; Fri, 20 Mar 2020 14:42:08 +0000 Received: from mail-qk1-x744.google.com ([2607:f8b0:4864:20::744]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jFIqc-0002E4-4h for pgsql-hackers@lists.postgresql.org; Fri, 20 Mar 2020 14:42:07 +0000 Received: by mail-qk1-x744.google.com with SMTP id p6so7067988qkm.0 for ; Fri, 20 Mar 2020 07:42:05 -0700 (PDT) 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=ZX7aCp9G7QnD9XfWscbtywQoXQrS1OvnbOmUy5bEM4Y=; b=Uhxxj87Pi+XQe/zqDKkXEyOIFulV+RWkVTuIcmB61ExUcRR7lprqEWCjiYnp4ZhW/g goDFcnG10Gf4gb7WWP7ie34lJbIGLXQQ6PI1IGT4bSMp4oyXknW8/kYmIf7z83vVPjyJ y3hsa5EBAKmMiN1rTGyntlcI6xRpZuZYAqHaUtE/WM3FPxT/OpxsJ4jDLm9pVWwJjSgW zlMKA/WkRlLO/3nBz/MktHWjIJevyaPNhQK6UntTSjVWDJGwSWGlGcLMZ6fYMXe5LjKw oLWvzNgv9Z+5B9WVt6OfjyyqgomesyOOEqGlD3TUNTKoMVZVjuLtpbGyBxO5J5cezmrQ Iwvg== 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=ZX7aCp9G7QnD9XfWscbtywQoXQrS1OvnbOmUy5bEM4Y=; b=eHls2csdLx6ACAzGIfFKNa6qLmB4EF6xlQfW6ZqZKy/tBp+kqkx4QYxJYAZUG41sft ztceyR/BfcWwW01Tns+ni+bcV//vhhwLPeuwN53cYN3/c5hOPOteVvVINjvFlNQxtIrh NsBBVg2VkjBNIur4MBlgOiiyNib8YvYtUjtz3h8ibKVuqIeg0PICD0eh9BX9vv89EC5y 7xWzv2lwmPV+BjVv7u0GEt2UCBiSuFRQLLcYhgn5JR0sGxTu4nVPmxwbfvVZ0sqZJxSg HuXa20xVvY6C7wU5Ul4UoJ8/X1ezoilQPwMQE8Ppme48ucaOQDUBR09DnAVFI0Jlmbkm 4Efg== X-Gm-Message-State: ANhLgQ378Uafyu37PntvNpBggepOD/xgktPt4Ry2f1KeLJw9kUYuQbZ9 DN1VI6gOzQhtsNRLeVvnSD3i+g== X-Google-Smtp-Source: ADFU+vtsuqYUiScTazcC+H0DDaruGT8JklBz6Ai7yEht8Uo+u3VhvBqMs9ic0uAWIuqlETN1eBBEWQ== X-Received: by 2002:a37:9f58:: with SMTP id i85mr8458022qke.186.1584715325225; Fri, 20 Mar 2020 07:42:05 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([201.186.208.119]) by smtp.gmail.com with ESMTPSA id v187sm4232480qkc.29.2020.03.20.07.42.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Mar 2020 07:42:04 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 6BC5A3007EE; Fri, 20 Mar 2020 11:42:02 -0300 (-03) Date: Fri, 20 Mar 2020 11:42:02 -0300 From: Alvaro Herrera To: Tom Lane Cc: Andres Freund , Amit Kapila , Michael Paquier , Julien Rouhaud , Masahiko Sawada , PostgreSQL Hackers Subject: Re: Missing errcode() in ereport Message-ID: <20200320144202.GA25565@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9966.1584671550@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Mar-19, Tom Lane wrote: > I think the key decision we'd have to make to move forward on this > is to decide whether it's still project style to prefer the extra > parens, or whether we want new code to do without them going > forward. If we don't want to risk requiring __VA_ARGS__ for the > old branches then I'd vote in favor of keeping the parens as > preferred style, at least till v11 is out of support. If we do > change that in the back branches then there'd be reason to prefer > to go without parens. New coders might still be confused about > why there are all these calls with the useless parens, though. It seems fine to accept new code in pg14 without the extra parens. All existing committers are (or should be) used to the style with the parens, so it's unlikely that we'll mess up when backpatching bugfixes; and even if we do, the buildfarm would alert us to that soon enough. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services