pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: michael@sqlexec.com <michael@sqlexec.com>
To: pgsql-bugs@postgresql.org
Cc: pgdude@pgdude.com, Michael Paquier <michael.paquier@gmail.com>
Subject: Re: BUG #13804: pg_restore returns unexpected error
Date: Fri, 11 Dec 2015 16:56:50 -0500
Message-ID: <566B46A2.8040105@sqlexec.com> (raw)
In-Reply-To: <CAB7nPqT-MyX1=TzqJ9WEiWwfKyr5b7qHiCvAnyOB5UkNUy7ESg@mail.gmail.com>
References: <20151207163520.2628.95990@wrigleys.postgresql.org>
	<CAB7nPqT-MyX1=TzqJ9WEiWwfKyr5b7qHiCvAnyOB5UkNUy7ESg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Example Test Case:

psql
create database aaa;
\c aaa
create table t1(akey int);
insert into t1 VALUES(1);
\q

-- example generates exit code 1 for pg_restore when creating public schema
pg_dump    -d aaa      -p 6432 -C -c --if-exists -Fc -v -w -f  ./db.dump
pg_restore -d postgres -p 6432 -C -c --if-exists -Fc -v        ./db.dump

-- generate listing
pg_restore -C -c --if-exists -Fc -v -l db.dump > db.list

-- generate output commands (no db provided)
pg_restore -C -c --if-exists -Fc -v -L db.list db.dump

-- execute using the list: generates same exit code 1 when attempting to 
create public schema
pg_restore -C -c --if-exists -Fc -v -L db.list db.dump -d postgres



> Michael Paquier <mailto:michael.paquier@gmail.com>
> Monday, December 7, 2015 7:06 PM
>
>
>
> If you think this is a bug, could you send a test case? There is not 
> enough information regarding what you expect of pg_restore and what it 
> is currently doing.
> -- 
> Michael

view thread (6+ messages)  latest in thread

Message-ID: <566B46A2.8040105@sqlexec.com>
Permalink:  ../566B46A2.8040105@sqlexec.com/
Also on:    postgresql.org/message-id/566B46A2.8040105@sqlexec.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: michael@sqlexec.com, michael.paquier@gmail.com
  Subject: Re: BUG #13804: pg_restore returns unexpected error
  In-Reply-To: <566B46A2.8040105@sqlexec.com>
  References: <20151207163520.2628.95990@wrigleys.postgresql.org> <CAB7nPqT-MyX1=TzqJ9WEiWwfKyr5b7qHiCvAnyOB5UkNUy7ESg@mail.gmail.com> <566B46A2.8040105@sqlexec.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox