Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfCoM-00083O-9t for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Sep 2015 20:08:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZfCoL-0000vY-Pu for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Sep 2015 20:08:09 +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) (envelope-from ) id 1ZfCoK-0000uA-VR for pgsql-hackers@postgresql.org; Thu, 24 Sep 2015 20:08:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZfCoI-0004Z9-5D for pgsql-hackers@postgresql.org; Thu, 24 Sep 2015 20:08:08 +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 t8OK80XD024626; Thu, 24 Sep 2015 16:08:00 -0400 From: Tom Lane To: Stephen Frost cc: Alvaro Herrera , pgsql-hackers@postgresql.org Subject: Re: Rename withCheckOptions to insertedCheckClauses In-reply-to: <20150924194529.GF3685@tamriel.snowman.net> References: <22678.1442348981@sss.pgh.pa.us> <20150915220002.GB3685@tamriel.snowman.net> <20150915221655.GK88970@alvherre.pgsql> <27213.1442356184@sss.pgh.pa.us> <20150915224851.GD3685@tamriel.snowman.net> <28196.1442358966@sss.pgh.pa.us> <20150924194358.GE3685@tamriel.snowman.net> <20150924194529.GF3685@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Thu, 24 Sep 2015 15:45:29 -0400" Date: Thu, 24 Sep 2015 16:08:00 -0400 Message-ID: <24625.1443125280@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Stephen Frost writes: > Alright, attached is an attempt at doing these renames. I went a bit > farther since it seemed to make sense to me (at least at the time, I'm > wondering a bit about it now), so, please provide any thoughts or > feedback you have regarding these changes. > Further, rename 'withCheckOptions' in Query and ModifyTable to > 'insertedCheckClauses', ExecWithCheckOption to ExecCheckClauses, > ri_WithCheckOptions and ri_WithCheckOptionExprs to > ri_InsertedCheckClauses and ri_InsertedCheckExprs, respectively, all to > make it clear that these are the check clauses which were added by the > rewriter, not the actual WITH CHECK OPTION indication for a view (which > is stored in reloptions for the view) nor the WITH CHECK expressions for That commitlog entry doesn't seem to quite square with the patch, wherein I see - * WithCheckOptions list of WithCheckOption's to be checked - * WithCheckOptionExprs list of WithCheckOption expr states + * InsertedCheckClauses list of WithCheckOption's to be checked + * InsertedCheckClauseExprs list of WithCheckOption expr states - List *ri_WithCheckOptions; - List *ri_WithCheckOptionExprs; + List *ri_InsertedCheckClauses; + List *ri_InsertedCheckClauseExprs; The distinction between a "clause" and an "expr" is not very obvious, and certainly most other places in the code use those terms pretty interchangeably, so I find both the old and new names unclear here. How about ri_InsertedCheckClauseStates instead for the second list? And similarly if you're using "Expr" to mean ExprState anywhere else. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers