X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 377C73A5C04 for ; Wed, 26 Jan 2005 16:21:01 +0000 (GMT) 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 38342-09 for ; Wed, 26 Jan 2005 16:20:56 +0000 (GMT) Received: from imss.cognitive.com (unknown [64.78.232.56]) by svr1.postgresql.org (Postfix) with ESMTP id 4032C3A5C77 for ; Wed, 26 Jan 2005 16:20:55 +0000 (GMT) Received: from imss.cognitive.com (localhost [127.0.0.1]) by localhost.cognitive.com (Postfix) with ESMTP id 7F4491D5F2; Wed, 26 Jan 2005 09:22:45 -0700 (MST) Received: from cog-mail.csi (unknown [10.3.0.18]) by imss.cognitive.com (Postfix) with ESMTP id 694AC1A1CB; Wed, 26 Jan 2005 09:22:45 -0700 (MST) Received: by COG-MAIL with Internet Mail Service (5.5.2653.19) id ; Wed, 26 Jan 2005 09:20:58 -0700 Message-ID: <593E515C9586D511BB4500010283D5E202564C6F@COG-MAIL> From: "Haron, Charles" To: Tom Lane , "Haron, Charles" Cc: pgsql-admin@postgresql.org, Richard Poole Subject: Re: Trouble Escaping Quotes Date: Wed, 26 Jan 2005 09:20:57 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200501/271 X-Sequence-Number: 16130 This the the SQL statement that causes the error: ****** SELECT Problem_Funct(TestTable1) FROM TestTable1 WHERE TestField1 ~* 'Fixit'; ****** This is the dump of the "test case": ******* -- -- PostgreSQL database dump -- \connect - postgres SET search_path = public, pg_catalog; -- -- TOC entry 6 (OID 352064) -- Name: plpgsql_call_handler (); Type: FUNCTION; Schema: public; Owner: postgres -- CREATE FUNCTION plpgsql_call_handler () RETURNS language_handler AS '$libdir/plpgsql', 'plpgsql_call_handler' LANGUAGE c; -- -- TOC entry 3 (OID 352065) -- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema: public; Owner: -- CREATE TRUSTED PROCEDURAL LANGUAGE plpgsql HANDLER plpgsql_call_handler; -- -- TOC entry 7 (OID 352066) -- Name: plperl_call_handler (); Type: FUNCTION; Schema: public; Owner: postgres -- CREATE FUNCTION plperl_call_handler () RETURNS language_handler AS '$libdir/plperl', 'plperl_call_handler' LANGUAGE c; -- -- TOC entry 4 (OID 352067) -- Name: plperlu; Type: PROCEDURAL LANGUAGE; Schema: public; Owner: -- CREATE PROCEDURAL LANGUAGE plperlu HANDLER plperl_call_handler; -- -- TOC entry 5 (OID 352067) -- Name: plperlu; Type: ACL; Schema: public; Owner: -- REVOKE ALL ON LANGUAGE plperlu FROM PUBLIC; -- -- TOC entry 2 (OID 352088) -- Name: testtable1; Type: TABLE; Schema: public; Owner: postgres -- CREATE TABLE testtable1 ( testfield1 character varying(25), testfield2 text ); -- -- TOC entry 8 (OID 352094) -- Name: problem_funct (testtable1); Type: FUNCTION; Schema: public; Owner: postgres -- CREATE FUNCTION problem_funct (testtable1) RETURNS void AS ' use Mail::Sender; my ($problem_data) = @_; my ($Test1) = $problem_data->{''TestField1''}; ' LANGUAGE plperlu STABLE; -- -- Data for TOC entry 9 (OID 352088) -- Name: testtable1; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY testtable1 (testfield1, testfield2) FROM stdin; Bob's Fixit Bob's Problem \. ******* BTW, I'm using v7.3.3 > -----Original Message----- > From: Tom Lane [mailto:tgl@sss.pgh.pa.us] > Sent: Monday, January 24, 2005 12:14 PM > To: Haron, Charles > Cc: pgsql-admin@postgresql.org; Richard Poole > Subject: Re: [ADMIN] Trouble Escaping Quotes > > "Haron, Charles" writes: > > *** Information From /data/serverlog *** > server closed > > the connection unexpectedly > > This probably means the server terminated abnormally > > before or while processing the request. > > The connection to the server was lost. Attempting reset: WARNING: > > Message from PostgreSQL backend: > > The Postmaster has informed me that some other backend > > died abnormally and possibly corrupted shared memory. > > Hmm. That moves it out of the realm of "user error", which > is what I think we'd all been assuming, and into the realm of > "server bug". > Can you supply a self-contained test case that causes this? > Or at least a debugger back trace from the point of the core dump? > > regards, tom lane > *********************** Confidentiality notice: This electronic transmission message is intended only for the use of the individual or entity to whom it is addressed. This information should be treated as proprietary, confidential, legally privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, (or the employee or agent responsible for delivering the message to the intended recipient), you are hereby notified that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please immediately notify us by telephone (720) 221-9421 or by return e-mail and delete this message. Thank you for your cooperation.