Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 08C504DA6A6 for ; Thu, 10 May 2012 03:14:52 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SSMeI-0002pb-QU for pgsql-bugs@postgresql.org; Thu, 10 May 2012 06:14:51 +0000 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 q4A6EaVG020592; Thu, 10 May 2012 02:14:36 -0400 (EDT) To: =?ISO-8859-1?B?QW5kcuFzIFbhY3pp?= cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6634: pg_dump dumps cast after objects depending on it In-reply-to: References: <3089.1336498864@sss.pgh.pa.us> Comments: In-reply-to =?ISO-8859-1?B?QW5kcuFzIFbhY3pp?= message dated "Wed, 09 May 2012 09:07:55 +0200" Date: Thu, 10 May 2012 02:14:36 -0400 Message-ID: <20591.1336630476@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/51 X-Sequence-Number: 33022 =?ISO-8859-1?B?QW5kcuFzIFbhY3pp?= writes: > Object list as pg_restore outputs (see error log below): That is not tremendously helpful. pg_dump should generally dump casts before views, and you have not provided any information that would tell why it's not doing so in this case. We need to see a complete *self contained* test case, such as a SQL script that creates a set of objects that don't dump correctly. regards, tom lane