Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnkcd-0008Nx-1O for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Mar 2017 11:28:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cnkcb-0008Bl-Vn for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Mar 2017 11:28:10 +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 1cnkca-00085l-9T for pgsql-hackers@postgresql.org; Tue, 14 Mar 2017 11:28:08 +0000 Received: from mail-qk0-x235.google.com ([2607:f8b0:400d:c09::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cnkcY-000805-5p for pgsql-hackers@postgresql.org; Tue, 14 Mar 2017 11:28:07 +0000 Received: by mail-qk0-x235.google.com with SMTP id v125so240145562qkh.2 for ; Tue, 14 Mar 2017 04:28: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=FhhAVv6PnSzSufk9EBLAxIqtIuAsvYuO8Yck3WZJ2zo=; b=YRA8zFhSap3/brclxOrPUYe07+Wo43v9AroPH/r9IOQOKBj42fuEmowCaVGXMVm9Jy dmv39FbR2FirSMPs6JCLORyQjjUYPBvV82M7qn4l4CPyksjtDfxgjnhhlgxuOXr+Vlyd iyBgBp4YpEY8G4eVjgd1koJl+kXuV3NJXAhSCiacBPeKk8LTi2gyPdhXXI6wGfb305sX gM/S2/6CRc3z8tK6xpDCG3L/dgV/9xTc5G0qN9Jd6ScS/bu3Adsx2PtkThKESPCZpeRx 9KX0RwYYKdIQ9Ud7/E5lwmBChYqyI0YMwrSoHBMC5UAv2h0TiEtAhUlaVdyskCkka2Tx Dvsg== 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=FhhAVv6PnSzSufk9EBLAxIqtIuAsvYuO8Yck3WZJ2zo=; b=XjLNRijT+wNq6sNfULRtLGjIAeOgc7gY6L5xCsHms7m9ctH28QJdP1s7ZVDTAZJcQf 7bf7k3Xa+HuDjtcaUm9gUh1X5it53Jq5Ca7wa8TBleJqgot9TSdVS4c3UqvmhMUU/zz1 kDtUrUBaAml0LPtYO9OD9Zj09rSlPVRqAUG8wd4A5g1hlYI705RTmBKgw6RKIzuICKoH 4yWpTHcoNvaYr7xgSt8mAm65Fu9e17veVe7Vy3rRcN6c0MAcMKN887x6j9EDnSk4l/Rq 1M5l8iaCOEaFMu6oOPQWzszYjTpVoljiwQbCXqwW455Q/4ru6BZo4xbJpbXRPCziOP0E r6Uw== X-Gm-Message-State: AFeK/H3mBP/4Z7dyzRYCiSbap2LabsAM+smUf33i+W9+5muwTTvwCcV9y4gejrOV72BCL2an X-Received: by 10.55.162.16 with SMTP id l16mr34991153qke.204.1489490885259; Tue, 14 Mar 2017 04:28:05 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.217.209.181]) by smtp.gmail.com with ESMTPSA id b144sm14224796qkg.7.2017.03.14.04.28.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Mar 2017 04:28:04 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 951B768F; Tue, 14 Mar 2017 08:28:02 -0300 (CLST) Date: Tue, 14 Mar 2017 08:28:02 -0300 From: Alvaro Herrera To: Andres Freund Cc: Tomas Vondra , pgsql-hackers@postgresql.org Subject: Re: WIP: Faster Expression Processing v4 Message-ID: <20170314112802.bnnuneyxtpwapzr5@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170314011104.mtcepqxip7qo5ax4@alap3.anarazel.de> User-Agent: NeoMutt/20170206-195-7adf12 (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 Andres Freund wrote: > EEO_SWITCH(op->opcode) > { > EEO_CASE(EEO_DONE): > goto out; Oh my. > which is a bit annoying. (the EEO_CASE is either a jump label or a case > statement, depending on computed goto availability). > > It seems we could either: > 1) live with the damage > 2) disable pgindent > 3) move the : inside EEO_CASE's definition, and only use {} blocks. I think 3) is nasty because the result doesn't look like normal C. If EEO_CASE() are potentially jump labels, then indentation becomes correct. Why not accept it? It looks odd, but that gives a better hint to the reader about what's going on. -- Á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