Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1Pqf-0004W0-CZ for pgsql-bugs@arkaria.postgresql.org; Sat, 14 May 2016 03:02:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b1Pqe-000821-Vf for pgsql-bugs@arkaria.postgresql.org; Sat, 14 May 2016 03:02:37 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b1Pq1-0007Kt-SC for pgsql-bugs@postgresql.org; Sat, 14 May 2016 03:01:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b1Ppz-0005gJ-BS for pgsql-bugs@postgresql.org; Sat, 14 May 2016 03:01:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u4E31sak032136; Fri, 13 May 2016 23:01:54 -0400 From: Tom Lane To: Christophe Pettus cc: pgsql-bugs@postgresql.org Subject: Re: pg_get_viewdef() drops casts, causing broken definitions In-reply-to: References: Comments: In-reply-to Christophe Pettus message dated "Fri, 13 May 2016 19:50:02 -0700" Date: Fri, 13 May 2016 23:01:54 -0400 Message-ID: <32135.1463194914@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) 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 Christophe Pettus writes: > PostgreSQL 9.5.2. > Summary: The view text returned by pg_get_viewdef() strips some casts, which can result in an error in trying to recreate the view. This means you can't successfully recreate those views from a pg_dump. Fixed as of 9.5.3. http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=1f7c85b820814810f985a270e92cde4c12ceded4 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