Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U0znU-0001j2-Ka for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Jan 2013 19:27:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U0znT-00059H-Gt for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Jan 2013 19:27:43 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U0znS-000596-GQ for pgsql-bugs@postgresql.org; Thu, 31 Jan 2013 19:27:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U0znQ-0004y1-RQ for pgsql-bugs@postgresql.org; Thu, 31 Jan 2013 19:27:41 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r0VJRaQe018123; Thu, 31 Jan 2013 14:27:36 -0500 (EST) From: Tom Lane To: lopuszanski@oleofarm.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7842: pg_dump scripts view to table In-reply-to: References: Comments: In-reply-to lopuszanski@oleofarm.com message dated "Thu, 31 Jan 2013 15:01:55 +0000" Date: Thu, 31 Jan 2013 14:27:35 -0500 Message-ID: <18122.1359660455@sss.pgh.pa.us> X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org lopuszanski@oleofarm.com writes: > 1. after using pg_dump to dump WHOLE database to file, 1 of views 'turned' > into a table. > so there is no 'create or replace VIEW XXXX .......' with definition, but > instead: > its scripted as 'create TABLE XXXX......' and definition.(in file that > pg_dump created) There's probably a CREATE RULE command further down that turns it into a view again. > 2. but after using pg_dump to dump only this 1 problematic 'view' (with -t > option) it stores it correcly as 'create or replace VIEW XXXX .......' That's not terribly surprising. The separate table and rule entries would only be used when it's necessary to work around a circular dependency with some other object. > it looks like pg_dump has problem with dependancies of this view..... I see no reason to think there's a bug here. If you still think it's a bug, you need to provide enough information for someone else to reproduce the case. http://www.postgresql.org/docs/9.1/static/bug-reporting.html regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs