Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 04CFC133740B for ; Tue, 9 Nov 2010 10:53:27 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 09007-06 for ; Tue, 9 Nov 2010 14:53:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 818521337B64 for ; Tue, 9 Nov 2010 10:53:19 -0400 (AST) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Tue, 09 Nov 2010 08:53:19 -0600 Message-Id: <4CD90BFE020000250003744E@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Tue, 09 Nov 2010 08:53:18 -0600 From: "Kevin Grittner" To: "Steven Dahlin" , Subject: Re: psqlexception syntax error at or near "$" References: In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/13 X-Sequence-Number: 21134 Steven Dahlin wrote: > CREATE OR REPLACE FUNCTION system_info_fnc01() RETURNS trigger AS > $$ > raise exception ''System Info record already present''; > $$ When you use dollar quoting you should not double your apostrophes. Try: raise exception 'System Info record already present'; -Kevin