Re: is there a way to dump the version of extensions - Mailing list pgsql-general

From Michael Paquier
Subject Re: is there a way to dump the version of extensions
Date
Msg-id CAB7nPqT0U_PguXXY3jvWfmQnjKvT=SELoJh79LRBD8_J8aev7w@mail.gmail.com
Whole thread Raw
In response to is there a way to dump the version of extensions  (Manuel Kniep <manuel@adjust.com>)
List pgsql-general
On Thu, Mar 27, 2014 at 7:11 PM, Manuel Kniep <manuel@adjust.com> wrote:
> Hi,
>
> when doing a pg_dump on postgres 9.2 the resulting sql file only has
>
> CREATE EXTENSION extension_name;
>
> I would like to include the specific version of the extension to make sure that the correct version
> is installed when loading the dump like
>
> CREATE EXTENSION extension_name VERSION vesion;
>
> Is there a way to do that?
With pg_dump only, no. It only dumps CREATE EXTENSION with the
extension name and the schema on which it is created to ensure that
the latest version available with server is created. You could always
correct by hand the dump file created though, just be sure that the
version of the extension you are compiling is compatible with the
server you are going to load the dump to.
Regards,
--
Michael


pgsql-general by date:

Previous
From: Khangelani Gama
Date:
Subject: Re: Synchronizing a table that is in two different databases : Need to dump a table as inserts from db1 and change the insert statements into UPDATE statements
Next
From: Adrian Klaver
Date:
Subject: Re: [ADMIN]openvz and shared memory trouble