Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VkcG4-0007aU-0O for pgsql-bugs@arkaria.postgresql.org; Sun, 24 Nov 2013 16:10:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VkcG3-0008Q1-Eb for pgsql-bugs@arkaria.postgresql.org; Sun, 24 Nov 2013 16:10:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VkcG2-0008P7-L3 for pgsql-bugs@postgresql.org; Sun, 24 Nov 2013 16:10:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VkcG0-0000PH-Fj; Sun, 24 Nov 2013 16:10:02 +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 rAOG9v8N021131; Sun, 24 Nov 2013 11:09:57 -0500 From: Tom Lane To: Michael Meskes cc: alexsav23@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #8611: ECPG: unclosed comment "/*" In-reply-to: <20131124113010.GC28081@feivel.credativ.lan> References: <20131122184613.GA13590@feivel.credativ.lan> <24807.1385151550@sss.pgh.pa.us> <20131124113010.GC28081@feivel.credativ.lan> Comments: In-reply-to Michael Meskes message dated "Sun, 24 Nov 2013 12:30:10 +0100" Date: Sun, 24 Nov 2013 11:09:57 -0500 Message-ID: <21130.1385309397@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-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Michael Meskes writes: > On Fri, Nov 22, 2013 at 03:19:10PM -0500, Tom Lane wrote: >> I don't see any way to "fix" it --- the best you can do is have a >> different set of users complaining, because C and SQL aren't consistent >> about this, and it's not obvious which convention should be followed >> where. > Well, I think we can in ecpg as ecpg knows whether it's parsing C code or SQL > code. Does it? In the example at hand, the questionable comment was after some C code and before some SQL code. I'd say it's just about exactly 50-50 odds as to whether the user will think that C or SQL conventions should apply at that spot. I remain of the opinion that changing behavior here will annoy more people than it will help. In any case, you won't make any friends at all unless you can document exactly what the behavior is (and I'm disappointed to see that your behavior-changing commit did not touch the documentation). There might be some reason to change if the new behavior is more easily explainable than the old. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs