Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f5KGfSa91726 for ; Wed, 20 Jun 2001 12:41:28 -0400 (EDT) (envelope-from pgsql-admin-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5J8VXa57559 for ; Tue, 19 Jun 2001 04:31:33 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f5J88X379328 for pgsql-admin@postgresql.org; Tue, 19 Jun 2001 04:08:33 -0400 (EDT) (envelope-from news) From: "Gerard Mason" X-Newsgroups: comp.databases.postgresql.admin Subject: Re: pg_dump dumps views as tables??? Date: Tue, 19 Jun 2001 09:12:32 +0100 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 38 Message-ID: <9gn1a0$2det$1@news.tht.net> References: <9gbd3s$2d6$1@news.tht.net> X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: pgsql-admin@postgresql.org X-Archive-Number: 200106/130 X-Sequence-Number: 1696 Anybody? "Gerard Mason" wrote in message news:9gbd3s$2d6$1@news.tht.net... > I am running postgresql-server-7.0.3-12mdk (Mandrake 8.0). The relevant part > of my build script looks like this: > > create view included_works > as > select uuid, title as lhs > , trim(to_char(cast(year_of_publication as int), '0000')) as rhs > from works > where include=true > ; > > What pg_dump actually outputs is this: > > CREATE TABLE "included_works" ( > "uuid" character(36), > "lhs" character varying(80), > "rhs" text > ); > > > I would be more appalled if I was less gobsmacked. Surely I'm doing > something wrong? But I can't find any reference to this in either the Admin > Guide or the Reference Manual (though admittedly I'm looking at the 7.1 > ones -- the 7.0 ones didn't have any info on it at all, I think). > > Help. > > >