Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id C5C1198FC83 for ; Tue, 8 May 2012 10:31:24 -0300 (ADT) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SRkVe-0002m1-L3 for pgsql-bugs@postgresql.org; Tue, 08 May 2012 13:31:24 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SRkVR-00045J-Bu for pgsql-bugs@postgresql.org; Tue, 08 May 2012 13:31:09 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1SRkVQ-0005cw-OR for pgsql-bugs@postgresql.org; Tue, 08 May 2012 13:31:08 +0000 Date: Tue, 08 May 2012 13:31:08 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6634: pg_dump dumps cast after objects depending on it To: pgsql-bugs@postgresql.org From: avandras@gmail.com X-Pg-Spam-Score: -1.0 (-) X-Archive-Number: 201205/45 X-Sequence-Number: 33016 The following bug has been logged on the website: Bug reference: 6634 Logged by: Andr=C3=A1s V=C3=A1czi Email address: avandras@gmail.com PostgreSQL version: 9.1.3 Operating system: Ubuntu 10.04.4 LTS Description: = A cast, which transforms a composite type to timestamp without time zone, is included in the regular backups of a database. = There are several views utilizing this cast, but these are always listed before the cast, therefore pg_restore or psql will issue an error instead of creating the view. = This causes that the DB cannot be successfully restored, only with the help of an additional patch file, which must be maintained by hand.