Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id E28A017A3628 for ; Wed, 11 Jul 2012 14:43:35 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sp0wn-0001PH-UG for pgsql-bugs@postgresql.org; Wed, 11 Jul 2012 17:43:35 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q6BHhJub014928; Wed, 11 Jul 2012 13:43:19 -0400 (EDT) From: Tom Lane To: tuckerpmt@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6727: Column does not exist exception has no error code In-reply-to: References: Comments: In-reply-to tuckerpmt@gmail.com message dated "Wed, 11 Jul 2012 15:08:23 -0000" Date: Wed, 11 Jul 2012 13:43:19 -0400 Message-ID: <14927.1342028599@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/77 X-Sequence-Number: 33553 tuckerpmt@gmail.com writes: > The SQLException that is thrown when performing a query that has a column > name that is not valid, does not exist, does not contain an error > code. Could you provide a specific example? When I try this I see an error code, 42703: regression=# \set VERBOSITY verbose regression=# select nosuchcol from int8_tbl; ERROR: 42703: column "nosuchcol" does not exist LINE 1: select nosuchcol from int8_tbl; ^ LOCATION: transformColumnRef, parse_expr.c:766 There may indeed be someplace where the errcode was forgotten, but without a concrete example it's hard to find where. regards, tom lane