Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f5KH1va01724 for ; Wed, 20 Jun 2001 13:01:57 -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 f5EMVAa13567 for ; Thu, 14 Jun 2001 18:31:10 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f5EMGU002473 for pgsql-admin@postgresql.org; Thu, 14 Jun 2001 18:16:30 -0400 (EDT) (envelope-from news) From: "Gerard Mason" X-Newsgroups: comp.databases.postgresql.admin Subject: pg_dump dumps views as tables??? Date: Thu, 14 Jun 2001 23:20:18 +0100 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 29 Message-ID: <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/133 X-Sequence-Number: 1690 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.