X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0310B329EBA for ; Tue, 21 Sep 2004 17:48:02 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 97552-05 for ; Tue, 21 Sep 2004 16:47:54 +0000 (GMT) Received: from bcbssc.com (mail1.bcbssc.com [207.19.198.69]) by svr1.postgresql.org (Postfix) with ESMTP id E6094329EA6 for ; Tue, 21 Sep 2004 17:47:53 +0100 (BST) Received: from ([207.19.198.73]) by mail1.bcbssc.com with ESMTP id KP-TRPV8.2024314; Tue, 21 Sep 2004 12:46:29 -0400 X-Internal-ID: 4144EF290000BBF7 Received: from companiongroup.com (207.19.198.73) by companion1.companiongroup.com (NPlex 2.0.108) for pgsql-sql@postgresql.org; 21 Sep 2004 12:47:26 -0400 Message-ID: Date: Tue, 21 Sep 2004 12:44:00 -0400 From: "CHRIS HOOVER" To: pgsql-sql@postgresql.org Subject: raise is not working X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/193 X-Sequence-Number: 19039 Hello again everyone. I need some help once again. I am following the postgresql pl/pgsql docs and trying to have my function show me the query it is trying to run since it not returning the expected results. However, it does not appear that the raise option is working. Can anyone please point me to what is wrong, or what server options need to be turned on. I have tried setting both server_min_messages (all the way down to debug5), and client_min_messages (to debug1), and I still do not get a responce. I did bounce the server after these changes. Anyway, here is a code snippet of what I am trying to do: SQL_Str := SQL_Str || "limit 15000;"; RAISE NOTICE ''SQL STRING = %'', SQL_Str; raise exception ''THIS SUCKS!''; for Clmhdr_rec in execute SQL_Str loop return next Clmhdr_rec; end loop; return; end; --------------- SQL_Str is defined as a varchar. Neither of the raise calls have done anything, but I don't get any errors either. I'm running 7.3.4. Thanks, Chris