Re: is there a way to dump the version of extensions

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: is there a way to dump the version of extensions
Дата
Msg-id CAB7nPqT0U_PguXXY3jvWfmQnjKvT=SELoJh79LRBD8_J8aev7w@mail.gmail.com
обсуждение исходный текст
Ответ на is there a way to dump the version of extensions  (Manuel Kniep <manuel@adjust.com>)
Список 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 по дате отправления:

Предыдущее
От: Khangelani Gama
Дата:
Сообщение: 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
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: [ADMIN]openvz and shared memory trouble