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 1gcwJI-0005pU-FK for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Dec 2018 17:52:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gcwJH-0004ly-5e for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Dec 2018 17:52:35 +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 1gcwJG-0004lr-R8 for pgsql-hackers@lists.postgresql.org; Fri, 28 Dec 2018 17:52:34 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gcwJ9-0000hS-G3 for pgsql-hackers@lists.postgresql.org; Fri, 28 Dec 2018 17:52:33 +0000 Received: by mail-qk1-x741.google.com with SMTP id 189so12890974qkj.8 for ; Fri, 28 Dec 2018 09:52:27 -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=fVXrSBh7XjmasamvJ0J8pwvfjufdrAJJ/n/cgRM/Li8=; b=VJeaFfUhRIFcfTanI0C5+0ph+EEthypfs7GQhatm8ax8uz7mWeJT3lkEBonV+vvPjQ C24DjXxLKd3HYB8KZz3QA1jFiNPCAqZd9gOWO4zWdAFniGjj2CrauxAJVjneJLIBr6u3 M3IsbYITarD11XMY0bioZK/ZtnU9W8A9CwdfqdNHTFImt7DLeAmFrayJqXlu2mwPIoeH dEiVc0i0J19kDiu4iN2YPNTRaV4Uv7hu1+K04hIEqnfs9ElOwOSAVh21c+YUeg3kHFSI yClPMzlSX5hX52b8H17kUnSfS20Naks0ZSkXHIOhb0GP3KCV9zieHzhDvBbrA7u/GMwp D2tw== 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=fVXrSBh7XjmasamvJ0J8pwvfjufdrAJJ/n/cgRM/Li8=; b=sjqRLFvpgbwxZRrSNGpLx1fJwg/Xp7zr1tTjz/OEx/8mCqHCTwHFdW7n1SgDlo86ie /pIrc8AC37cv2qLxDEm3lg5dC+O7rIaJbXD3EBiA2D7A5BDDH42gDVSqoib2geEevvoN +k2zCzfUY6k0g8NdBj9b4QIhJmmqArrTRntY84iU7lV1OsXAZ/ya3rY6fweGTp7GyuGt QpccyFsFKkEBE0/rACMEyxBL1Q5XF4HEbu3BuqIg0yHCZ6EbZLRWmxfYrpdgqxZe5PZ7 /WScaUl9M54reqqR4idFjSNrH4VIjxibWG2i8qXlrVzSk5fQQTfis4q4m3XiJOiQGJ2U xBIg== X-Gm-Message-State: AJcUukd60Y1CCigp4qHBgmpM+JHakYfAb+AsWUF96B/IZqRvB1UOLxVH 0GlYSAYUwH9nfz6vdlpAagA10g== X-Google-Smtp-Source: ALg8bN5WoIWe6YdwSJuM5/4aPiEzQOEicy9LxXnBuyYOjdp8k5Z8DyF5MgzyrSaNw0w7mZPiXJ+big== X-Received: by 2002:a37:a6c2:: with SMTP id p185mr26647222qke.28.1546019546627; Fri, 28 Dec 2018 09:52:26 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id o49sm17940505qtf.60.2018.12.28.09.52.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Dec 2018 09:52:25 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 22A49A3F; Fri, 28 Dec 2018 14:52:24 -0300 (-03) Date: Fri, 28 Dec 2018 14:52:24 -0300 From: Alvaro Herrera To: Robert Haas Cc: PostgreSQL Hackers Subject: Re: rewrite ExecPartitionCheckEmitError Message-ID: <201812281752.evicricdva5e@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716-1013-2c1e88 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Dec-07, Robert Haas wrote: > On Thu, Dec 6, 2018 at 5:22 PM Alvaro Herrera wrote: > > Just on cleanliness grounds, I propose to rewrite the function in > > $SUBJECT. I came across this while reviewing some already-committed > > patch for partition pruning, and it's been sitting in my laptop ever > > since. > > > > I think the current coding is too convoluted and hard to follow. The > > patch makes it much simpler (IMO). > > I don't really think this is an improvement, but the only part I > really dislike is s/val_desc/valdsc/. That is surely not an > improvement in readability. Point taken; pushed with that change. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services