Re: Restoring a database restores to unexpected tablespace

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Restoring a database restores to unexpected tablespace
Дата
Msg-id 16457.1562768430@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Restoring a database restores to unexpected tablespace  (Ian Barwick <ian.barwick@2ndquadrant.com>)
Ответы Re: Restoring a database restores to unexpected tablespace  (Alex Williams <valenceshell@protonmail.com>)
Список pgsql-general
Ian Barwick <ian.barwick@2ndquadrant.com> writes:
> On 7/10/19 2:56 AM, Alex Williams wrote:
>> 3. Restore the database with this command:
>> zcat /var/backup/db/mydatabase.gz |         sudo -H -u postgres         psql --quiet -e -c 'SET default_tablespace =
pg_default;'-f - mydatabase_test > /tmp/mydatabase_test.log 

> This should work.

Yeah, on modern PG.  But I think psql didn't support combinations of
-c and -f switches until 9.6.  9.5 would simply have dropped that -c
switch.

            regards, tom lane



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

Предыдущее
От: "Weatherby,Gerard"
Дата:
Сообщение: Re: execute_values
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: execute_values