From: Tom Lane <tgl@sss.pgh.pa.us>
To: nickbarnes01@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13581: pg_dump omits extension versions
Date: Thu, 20 Aug 2015 09:51:41 -0400
Message-ID: <17233.1440078701@sss.pgh.pa.us> (raw)
In-Reply-To: <20150820122233.7668.46092@wrigleys.postgresql.org>
References: <20150820122233.7668.46092@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, nickbarnes01@gmail.com
Subject: Re: BUG #13581: pg_dump omits extension versions
In-Reply-To: <17233.1440078701@sss.pgh.pa.us>
References: <20150820122233.7668.46092@wrigleys.postgresql.org> <17233.1440078701@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox