Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cS7OO-0008H6-MN for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Jan 2017 19:20:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cS7OO-0001v2-7a for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Jan 2017 19:20:04 +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 1cS7Mz-0008VK-6u for pgsql-hackers@postgresql.org; Fri, 13 Jan 2017 19:18:37 +0000 Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cS7Mv-0005VG-IO for pgsql-hackers@postgresql.org; Fri, 13 Jan 2017 19:18:36 +0000 Received: by mail-qk0-x22e.google.com with SMTP id a20so64479958qkc.1 for ; Fri, 13 Jan 2017 11:18:33 -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=mujRoQb7VMwufh8T99IZroxZiLQjmchwnUWNBu8Kly4=; b=Qxj6jtFyDZPnC1qIwNuGlvdaWjxEADe3ctOv9wVaqvkK8rfSmX/SJaWQOBi2/+JCfL v28O3gb28rPssSUr+Gw9hQdI0ZHg6ZmDmox7S/iGv4182M8Es/d+CMdAcNRAHslkfKXs afxSPr5PjWh3LSvhQfe7BqDDC9YwbRc7PpXNWVE6xJW/zU8wrtzQNsowcnriWS+RWFna auZDjPSnYkA88iASJ874VhUci+xUXXDGdzSQ4sJmr61HFhi4QAv//YqeL5Z+LNxXOHaN OE88tqRHDgvtLQ/bDpGotQi1Zhui/qfZjOVSpX+SYjJXZzG4CwXk+HpYziEdQwUqLhId ze1Q== 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=mujRoQb7VMwufh8T99IZroxZiLQjmchwnUWNBu8Kly4=; b=h7NObeFUX+FSVI+iGELZXI0YtWvzKIeLJnJA7VoARUhgby2mGTjPiIUqxUX3yOiMrc 61QUDjMUXvMNu/L7J/mnTHAD92lelfU0N6mWr7d5GbbbFt7WG8Ovn2awIxSmubLuMpde sktIYVFgrk1xxeiZOj2zyHEwKvtVc0jAsFTJuMZAv7WFrFtz0sHQ9vjzIXkMzU1ByuP3 LEpZOfhgt8KKqW/hjtOmTGD2RMvd98A0SS6b7IvGh1sKT2enYmgTmYEBqFsg2XKw0JoN DgrlaoGPznbps9CHHK1sLawiRVpn+dKk1SxlXK3WCCBjvTkR3ehjSRHZYIxmOYWwRQCG /H1A== X-Gm-Message-State: AIkVDXISMjfg3DcSc3waa9pB4Djezcyb2PA3Bbq0JVO1tsHrHNW40sU8h6JyRuMGwvOPRkMN X-Received: by 10.55.122.130 with SMTP id v124mr8131312qkc.19.1484335111719; Fri, 13 Jan 2017 11:18:31 -0800 (PST) Received: from alvin.alvh.no-ip.org ([179.57.112.237]) by smtp.gmail.com with ESMTPSA id p47sm9871780qtc.25.2017.01.13.11.18.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jan 2017 11:18:31 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id C91CFD46; Fri, 13 Jan 2017 16:18:28 -0300 (CLST) Date: Fri, 13 Jan 2017 16:18:28 -0300 From: Alvaro Herrera To: Robert Haas Cc: pgsql-hackers@postgresql.org, Amit Langote Subject: Re: [COMMITTERS] pgsql: Fix a bug in how we generate partition constraints. Message-ID: <20170113191828.wqgv3rlo5qqzrqgl@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/20161104 (1.7.1) 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 Robert Haas wrote: > Fix a bug in how we generate partition constraints. > > Move the code for doing parent attnos to child attnos mapping for Vars > in partition constraint expressions to a separate function > map_partition_varattnos() and call it from the appropriate places. Hmm, we were discussing this stuff a few days ago, see https://www.postgresql.org/message-id/20170109182800.qrkae62kmur3gfeg@alvherre.pgsql and commit 3957b58b8885441c8d03bc1cfc00e47cf8cd7975. Part of this code duplicates that ... -- Á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