Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id A3C15B5F39E for ; Tue, 7 Jun 2011 17:07:59 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 67858-07 for ; Tue, 7 Jun 2011 20:07:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 8084BB5F38F for ; Tue, 7 Jun 2011 17:07:52 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p57K7pq2019431; Tue, 7 Jun 2011 16:07:51 -0400 (EDT) To: Greg Stark cc: pgsql-bugs@postgresql.org, Daniel Cristian Cruz Subject: Re: Re: BUG #6050: Dump and restore of view after a schema change: can't restore the view In-reply-to: References: <201106031238.p53CcA8P075374@wwwmaster.postgresql.org> <27042.1307113140@sss.pgh.pa.us> <12928.1307457185@sss.pgh.pa.us> Comments: In-reply-to Greg Stark message dated "Tue, 07 Jun 2011 21:01:07 +0100" Date: Tue, 07 Jun 2011 16:07:51 -0400 Message-ID: <19430.1307477271@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/76 X-Sequence-Number: 30455 Greg Stark writes: > A lot of work has gone into making pg_dump/pg_restore guarantee that > they'll always produce a copy of the database, even if you've done odd > things like change the lower bounds of your arrays. A lot of this was > from before the days of PITR when pg_dump/pg_restore was the *only* > backup option and it was considered absolutely essential that they > always work. But even today I think it's still a goal that pg_dump > always dump a loadable database. Well, pg_upgrade still depends on pg_dump being a 100% solution for DDL, so I don't think the requirements have gone down any ... > I had in mind for pg_dump to decide to use the non-standard syntax iff > it was necessary at dump time. Maybe. I'm concerned about the cost of determining whether it's necessary ("cost" meaning both "runtime" and "code complexity"). regards, tom lane