Re: pg_restore --create --no-tablespaces should not issue 'CREATEDATABASE ... TABLESPACE'

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pg_restore --create --no-tablespaces should not issue 'CREATEDATABASE ... TABLESPACE'
Дата
Msg-id CAB7nPqQLxi+h7AmWRQaDg+jQyW-E+Z4-ZiKq+8jVSES+vKcRvw@mail.gmail.com
обсуждение исходный текст
Ответ на pg_restore --create --no-tablespaces should not issue 'CREATEDATABASE ... TABLESPACE'  (eike <eike@rikart.de>)
Ответы Re: pg_restore --create --no-tablespaces should not issue 'CREATEDATABASE ... TABLESPACE'  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-bugs
On Sat, Dec 16, 2017 at 6:26 AM, eike <eike@rikart.de> wrote:
> I'd say this is a bug in pg_restore.
>
> When invoking pg_restore with the option --no-tablespaces
> the statement: CREATE DATABASE
> should create the database in the current table space,
> ignoring any table space designation from the export.

Per the documentation in
https://www.postgresql.org/docs/devel/static/app-pgrestore.html:
Do not output commands to select tablespaces. With this option, all
objects will be created in whichever tablespace is the default during
restore.

So it seems to me that this is a justified complain. Thoughts?
-- 
Michael


В списке pgsql-bugs по дате отправления:

Предыдущее
От: Devrim Gündüz
Дата:
Сообщение: Re: BUG #14980: initddb fails (Issue with postgresql-9.3 initdconfig)
Следующее
От: Ashutosh Sharma
Дата:
Сообщение: Re: 10.1: hash index size exploding on vacuum full analyze