Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W5OZr-0005At-28 for pgsql-bugs@arkaria.postgresql.org; Mon, 20 Jan 2014 23:48:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W5OZq-0004kh-Ai for pgsql-bugs@arkaria.postgresql.org; Mon, 20 Jan 2014 23:48:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W5OZp-0004ka-Bp for pgsql-bugs@postgresql.org; Mon, 20 Jan 2014 23:48:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W5OZi-0000W3-QW for pgsql-bugs@postgresql.org; Mon, 20 Jan 2014 23:48:21 +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 s0KNmDYe006669; Mon, 20 Jan 2014 18:48:13 -0500 From: Tom Lane To: Boszormenyi Zoltan cc: herbert.grohmann@vallourec.com, pgsql-bugs@postgresql.org Subject: Re: BUG #8893: Precompiler ECPG doesn't check Var-List in Select corrrect. In-reply-to: <52DDA126.8040003@pr.hu> References: <20140120115411.26701.48100@wrigleys.postgresql.org> <14700.1390232209@sss.pgh.pa.us> <52DDA126.8040003@pr.hu> Comments: In-reply-to Boszormenyi Zoltan message dated "Mon, 20 Jan 2014 23:20:22 +0100" Date: Mon, 20 Jan 2014 18:48:13 -0500 Message-ID: <6668.1390261693@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) 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 Boszormenyi Zoltan writes: > 2014-01-20 16:36 keltezéssel, Tom Lane írta: >> Unfortunately, that's legal SQL syntax: stoerzeit_a11 is taken as a column >> alias for sugru_9, even without AS in front of it. > Still, this particular problem may be caught by the preprocessor. > The SELECT targetlist is not "*", so the number of members for both > the targetlist and the user structure (INTO :s_schichtsatz) are known. Yeah, good point. There was a comparable complaint a couple days ago about plpgsql not checking its INTO target count carefully enough. In both cases we could improve the odds of catching an error, even if it wouldn't be perfect. 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