Re:

Поиск
Список
Период
Сортировка
От Melvin Davidson
Тема Re:
Дата
Msg-id CANu8Fiy8O0OrJzxdCQSdoiwe73DSSbroFRYaa7BK+56af-pQPA@mail.gmail.com
обсуждение исходный текст
Ответ на  (Alex Luya <alexander.luya@gmail.com>)
Ответы Re:  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
It is very simple. If you have already created database icare then
DO NOT use the -create flag!

http://www.postgresql.org/docs/9.2/interactive/app-pgrestore.html

And as requested before, please provide the O/S and PostgreSQL version.

On Fri, Nov 13, 2015 at 12:38 AM, Alex Luya <alexander.luya@gmail.com> wrote:
Hello,
       I created a new database by 

       create database icare;

       then quit off psql and  run:
  
        pg_restore --clean --create --exit-on-error --dbname=icare icare-test.tar

         it complains:

          pg_restore: [archiver (db)] Error while PROCESSING TOC:
          pg_restore: [archiver (db)] Error from TOC entry 21; 2615 80924 SCHEMA icare icare
          pg_restore: [archiver (db)] could not execute query: ERROR:  permission denied for database icare
           Command was: CREATE SCHEMA icare;



--
Melvin Davidson
I reserve the right to fantasize.  Whether or not you
wish to share my fantasy is entirely up to you.

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

Предыдущее
От: James Keener
Дата:
Сообщение: Re:
Следующее
От: Leonardo M. Ramé
Дата:
Сообщение: Array_to_json remove brackets