Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZSQFx-0002x6-Eq for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Aug 2015 13:51:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZSQFx-0004Pb-0v for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Aug 2015 13:51:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZSQFw-0004OJ-CH for pgsql-bugs@postgresql.org; Thu, 20 Aug 2015 13:51:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZSQFt-00045M-FU for pgsql-bugs@postgresql.org; Thu, 20 Aug 2015 13:51:47 +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 t7KDpfd5017234; Thu, 20 Aug 2015 09:51:41 -0400 From: Tom Lane To: nickbarnes01@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13581: pg_dump omits extension versions In-reply-to: <20150820122233.7668.46092@wrigleys.postgresql.org> References: <20150820122233.7668.46092@wrigleys.postgresql.org> Comments: In-reply-to nickbarnes01@gmail.com message dated "Thu, 20 Aug 2015 12:22:33 -0000" Date: Thu, 20 Aug 2015 09:51:41 -0400 Message-ID: <17233.1440078701@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) 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 nickbarnes01@gmail.com writes: > pg_dump does not include a VERSION clause in CREATE EXTENSION > statements. That is by design. pg_dump does not try to force you to reload the data into the same server version either. The expectation is that you may want to load the data into a newer server version, and the same would go for extensions. > This can cause the restore to fail, if for example the structure of the > extension's configuration tables has changed, or the database has > dependencies on a dropped function, type, etc. If some extension has broken compatibility with its own previous versions that badly, I would say you have a gripe to file with the extension's author, not us. In any particular case you could presumably work around it by temporarily changing the extension's default version in the new installation. But even then, how could ALTER EXTENSION UPDATE work, if there are such incompatibilities between its older and newer versions? The core server code goes to very great lengths to ensure that pg_dump scripts from older server versions will load into newer ones. I do not see why we should expect differently from extension authors. 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