X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2589952BA2 for ; Mon, 1 Aug 2005 18:49:36 -0300 (ADT) 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 79715-06 for ; Mon, 1 Aug 2005 21:49:30 +0000 (GMT) Received: from flake.decibel.org (flake.decibel.org [67.100.216.10]) by svr1.postgresql.org (Postfix) with ESMTP id 4DC0452BE0 for ; Mon, 1 Aug 2005 18:49:29 -0300 (ADT) Received: by flake.decibel.org (Postfix, from userid 1001) id C41D015233; Mon, 1 Aug 2005 16:49:31 -0500 (CDT) Date: Mon, 1 Aug 2005 16:49:31 -0500 From: "Jim C. Nasby" To: Matthew Schumacher Cc: PFC , Tom Lane , pgsql-performance@postgresql.org Subject: Re: Performance problems testing with Spamassassin 3.1.0 Message-ID: <20050801214931.GF60019@decibel.org> References: <42E9749F.6000709@aptalaska.net> <1122616211.5691.340.camel@lamb.mcmillan.net.nz> <42EA6966.8090402@aptalaska.net> <1122668371.5691.352.camel@lamb.mcmillan.net.nz> <19405.1122670917@sss.pgh.pa.us> <42EAA410.9010700@aptalaska.net> <27897.1122748133@sss.pgh.pa.us> <42EE8043.1050207@aptalaska.net> <42EE93F8.5010003@aptalaska.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42EE93F8.5010003@aptalaska.net> X-Operating-System: FreeBSD 4.11-RELEASE-p10 i386 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.003 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200508/10 X-Sequence-Number: 13757 On Mon, Aug 01, 2005 at 01:28:24PM -0800, Matthew Schumacher wrote: > PFC wrote: > > > > > >> select put_tokens2(1, '{"\\246\\323\\061\\332\\277"}', 1, 1, 10000); > > > > > > Try adding more backslashes until it works (seems that you need \\\\ > > or something). > > Don't DBI convert the language types to postgres quoted forms on its > > own ? > > > > Your right.... I am finding that the proc is not the problem as I > suspected, it works correctly when I am not calling it from perl, > something isn't escaped correctly.... I'm not sure who's responsible for DBI::Pg (Josh?), but would it make sense to add better support for bytea to DBI::Pg? ISTM there should be a better way of doing this than adding gobs of \'s. -- Jim C. Nasby, Database Consultant decibel@decibel.org Give your computer some brain candy! www.distributed.net Team #1828 Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming, or what?"