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 76FAC528C6 for ; Thu, 23 Jun 2005 17:22:10 -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 39298-06 for ; Thu, 23 Jun 2005 20:22:07 +0000 (GMT) Received: from web11.manitu.net (web11.manitu.net [217.11.48.111]) by svr1.postgresql.org (Postfix) with ESMTP id 1E35B52882 for ; Thu, 23 Jun 2005 17:22:06 -0300 (ADT) Received: from tschibtschibojtschitsch (dsl-084-059-066-190.arcor-ip.net [84.59.66.190]) (authenticated) by web11.manitu.net (8.10.2-SOL3/8.10.2) with ESMTP id j5NKM4V24253 for ; Thu, 23 Jun 2005 22:22:05 +0200 Subject: Re: empty view, replace view, column type change? From: Markus Bertheau To: PgSQL - SQL In-Reply-To: <1119557009.7430.16.camel@localhost.localdomain> References: <1119557009.7430.16.camel@localhost.localdomain> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-FBaXZUEs3bjQ81xd7diI" Date: Thu, 23 Jun 2005 22:21:58 +0200 Message-Id: <1119558118.7430.19.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.172 tagged_above=0 required=5 tests=AWL, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200506/286 X-Sequence-Number: 21887 --=-FBaXZUEs3bjQ81xd7diI Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Dnia 23-06-2005, czw o godzinie 22:03 +0200, Markus Bertheau napisa=C5=82(a= ): > Hi, >=20 > it seems to me that the following should work but it fails: >=20 > CREATE VIEW co AS SELECT LOCALTIMESTAMP::TIMESTAMP AS ov WHERE FALSE; > CREATE TABLE link (ov TIMESTAMP); > CREATE OR REPLACE VIEW co AS SELECT ov FROM link; Erm, the error message is something to the effect of ERROR: can't change type of view column "ov" --=20 Markus Bertheau --=-FBaXZUEs3bjQ81xd7diI Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBCuxnm2RUnMPztcykRAlhgAJ0exmS4zBhrd47zubM6pUUZgqKIwwCeIQ1i nwiNHz8jwB9r85PyKUTP7Mo= =h3fv -----END PGP SIGNATURE----- --=-FBaXZUEs3bjQ81xd7diI--