X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6EC054763C4 for ; Tue, 13 May 2003 15:34:21 -0400 (EDT) Received: from lerami.lerctr.org (lerami.lerctr.org [207.158.72.11]) by postgresql.org (Postfix) with ESMTP id 84ADF4763BA for ; Tue, 13 May 2003 15:34:17 -0400 (EDT) Received: from lerlaptop.iadfw.net (lerlaptop.iadfw.net [206.66.13.21]) (authenticated bits=0) by lerami.lerctr.org (8.12.9/8.12.9/20030225) with ESMTP id h4DJYEKK017254; Tue, 13 May 2003 14:34:15 -0500 (CDT) Date: Tue, 13 May 2003 14:34:14 -0500 From: Larry Rosenman To: josh@agliodbs.com, pgsql-sql@postgresql.org Subject: Re: Ok, how do I debug THIS? Message-ID: <256400000.1052854454@lerlaptop.iadfw.net> In-Reply-To: <200305131231.34175.josh@agliodbs.com> References: <246160000.1052853868@lerlaptop.iadfw.net> <200305131231.34175.josh@agliodbs.com> X-Mailer: Mulberry/3.0.3 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Spam-Status: No, hits=-26.6 required=5.0 tests=BAYES_01,IN_REP_TO,QUOTED_EMAIL_TEXT,QUOTE_TWICE_1, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/240 X-Sequence-Number: 13405 --On Tuesday, May 13, 2003 12:31:34 -0700 Josh Berkus wrote: > Larry, > >> but the function is: >> >> $ wc -l z >> 147 z >> $ head z >> CREATE OR REPLACE FUNCTION networks_trigger_log () RETURNS "trigger" >> AS 'DECLARE >> record_fields_old text; >> record_values_old text; >> record_fields_new text; >> record_values_new text; >> query_string_old text; >> query_string_new text; >> BEGIN >> query_string_old := ''INSERT INTO networks_log''; > > You seem to be missing most of your function, here. I just did a head. Note the line count above. It's only 147 lines, but the error refers to line 206. How do I debug it? (I can post the whole thing, but it's butt ugly (still in development)). > > -- > -Josh Berkus > Aglio Database Solutions > San Francisco > -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: ler@lerctr.org US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749