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 EF5853A5D6B for ; Wed, 12 Jan 2005 17:24:06 +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 48181-08 for ; Wed, 12 Jan 2005 17:23:54 +0000 (GMT) Received: from smtp105.rog.mail.re2.yahoo.com (smtp105.rog.mail.re2.yahoo.com [206.190.36.83]) by svr1.postgresql.org (Postfix) with SMTP id E65593A5D54 for ; Wed, 12 Jan 2005 17:23:51 +0000 (GMT) Received: from unknown (HELO phlogiston.dydns.org) (a.sullivan@rogers.com@216.75.167.195 with login) by smtp105.rog.mail.re2.yahoo.com with SMTP; 12 Jan 2005 17:23:51 -0000 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id F2C8E4033; Wed, 12 Jan 2005 12:23:28 -0500 (EST) Date: Wed, 12 Jan 2005 12:23:28 -0500 From: Andrew Sullivan To: Sz?cs =?iso-8859-1?Q?G=E1bor?= Cc: "pgsql-sql@postgresql.org" Subject: Re: failed to find conversion function from "unknown" to text Message-ID: <20050112172328.GD28484@phlogiston.dyndns.org> References: <41E555DA.1060707@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <41E555DA.1060707@gmail.com> User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/61 X-Sequence-Number: 19849 On Wed, Jan 12, 2005 at 05:52:42PM +0100, Sz?cs Gábor wrote: > Question: is there a way to tell the server to convert unknown to something > (text or varchar, don't really care), or to write such a "conversion > function"? You ought to be able to cast (e.g. "SELECT case 'a'::text. . .) A -- Andrew Sullivan | ajs@crankycanuck.ca Information security isn't a technological problem. It's an economics problem. --Bruce Schneier