X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 759359DC827 for ; Thu, 5 Jan 2006 21:34:28 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 56964-06 for ; Thu, 5 Jan 2006 21:34:31 -0400 (AST) X-Greylist: delayed 00:15:57.997159 by SQLgrey- Received: from hp.sduept.com (unknown [60.208.83.220]) by postgresql.org (Postfix) with ESMTP id 85E229DC802 for ; Thu, 5 Jan 2006 21:34:24 -0400 (AST) Received: from [192.168.1.36] (soft36.sduept.com [192.168.1.36]) by hp.sduept.com (8.13.1/8.13.1) with ESMTP id k061WaEJ017510 for ; Fri, 6 Jan 2006 09:32:36 +0800 Message-ID: <43BDC8B4.6020801@sduept.com> Date: Fri, 06 Jan 2006 09:32:36 +0800 From: JiangWei User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: [C API] Is there a nice way to get table/column name on some error ? Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.144 required=5 tests=[AWL=0.016, HTML_MESSAGE=0.001, HTML_TAG_EXIST_TBODY=0.126, MIME_HTML_ONLY=0.001] X-Spam-Score: 0.144 X-Spam-Level: X-Archive-Number: 200601/3 X-Sequence-Number: 5919
42703 UNDEFINED COLUMN undefined_column
42883 UNDEFINED FUNCTION undefined_function
42P01 UNDEFINED TABLE undefined_table

I want to know which column undefined when "undefined_column" Happen at run time.