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 502EA3A62FC for ; Fri, 28 Jan 2005 15:04:22 +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 59564-01 for ; Fri, 28 Jan 2005 15:04: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 8EFFF3A62F7 for ; Fri, 28 Jan 2005 15:04:19 +0000 (GMT) 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 j0SF4CrU029816; Fri, 28 Jan 2005 10:04:12 -0500 (EST) To: friendVU admin Cc: pgsql-sql@postgresql.org Subject: Re: error: cast the timestam expression In-reply-to: <41FA527E.9050005@friendvu.com> References: <41FA527E.9050005@friendvu.com> Comments: In-reply-to friendVU admin message dated "Fri, 28 Jan 2005 08:55:58 -0600" Date: Fri, 28 Jan 2005 10:04:12 -0500 Message-ID: <29815.1106924652@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: 200501/308 X-Sequence-Number: 20096 friendVU admin writes: > When I execute this: > "insert into comments > ( > date_posted > ) > (select date_published > from xyz > )" > I get : > "ERROR: column "date_posted" is of type timestamp without time zone but > expression is of type text > HINT: You will need to rewrite or cast the expression." > Both dates are of type timesamp! I don't think so. Let's see the definitions of the comments and xyz tables (\d in psql will do). regards, tom lane