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 53FC652841 for ; Fri, 3 Jun 2005 10:47:19 -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 64182-04 for ; Fri, 3 Jun 2005 13:47:16 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 5BCED528E7 for ; Fri, 3 Jun 2005 10:47:11 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j53DlBFn004301; Fri, 3 Jun 2005 09:47:11 -0400 (EDT) To: Markus Bertheau =?UTF-8?Q?=E2=98=AD?= Cc: Achilleus Mantzios , "'PostgreSQL'" Subject: Re: 'true'::TEXT::BOOLEAN In-reply-to: <1117799555.9816.24.camel@dicaprio.akademie1.de> References: <1117799555.9816.24.camel@dicaprio.akademie1.de> Comments: In-reply-to Markus Bertheau =?UTF-8?Q?=E2=98=AD?= message dated "Fri, 03 Jun 2005 13:52:35 +0200" Date: Fri, 03 Jun 2005 09:47:11 -0400 Message-ID: <4300.1117806431@sss.pgh.pa.us> From: Tom Lane 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: 200506/47 X-Sequence-Number: 21648 Markus Bertheau =?UTF-8?Q?=E2=98=AD?= writes: > Well, that's not my question. I have a plpgsql function like that: > ... > And I can't call it with a TEXT variable, because casting from TEXT to > BOOLEAN isn't possible. In plpgsql it is: just assign the text value to a boolean variable. plpgsql's notions of type safety are pretty lax ;-) regards, tom lane