pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #13438: Restore using GUI client - Data Not Loading
Date: Sat, 13 Jun 2015 09:04:06 -0700
Message-ID: <557C5476.4060703@hogranch.com> (raw)
In-Reply-To: <16811.1434211031@sss.pgh.pa.us>
References: <20150612185020.32367.54876@wrigleys.postgresql.org>
	<16811.1434211031@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 6/13/2015 8:57 AM, Tom Lane wrote:
> cathi.soule@roberthalf.com  writes:
>> >Hello, I am trying to backup / restore a table named 'user' using Postgres
>> >GUI/client. The restore does not load data. I suspect the issue may be the
>> >tablename 'user' (not my table). The backup msgs are listed below. My other
>> >successful restores had 2 additional msgs (pg_restore: processing data for
>> >table "skillc" pg_restore: setting owner and privileges for TABLE DATA
>> >skillc). Defaults were used on backup and restore. Does anyone know how to
>> >resolve? Thank you for any help!
>> >  C:/Program Files/PostgreSQL/9.4/bin\pg_restore.exe --host localhost --port
>> >5432 --username "postgres" --dbname "d27qs7oej1f23" --no-password
>> >--data-only --table \"user\" --schema xyz1 --verbose "E:\20150611 Mig32QA
>> >user4.backup"
>> >  pg_restore: connecting to database for restore
>> >  Process returned exit code 0.
> I'm not real sure what backslashes do in the Windows command interpreter,
> but I bet the problem is that what pg_restore is getting as the argument
> of the --table switch is not just user but something with quote marks
> and/or backslashes in it, and that's not matching any table name it can
> find in the file so it doesn't restore anything.
>
> Try leaving off all that decoration.  "user" is not a keyword as far
> as the shell is concerned, so it doesn't really need quoting in this
> context.


A) they are using a GUI, so that command was autogenerated by something 
(pg_admin ?)

B) they said this was the output of the backup, yet its pg_restore...



-- 
john r pierce, recycling bits in santa cruz



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (6+ messages)  latest in thread

Message-ID: <557C5476.4060703@hogranch.com>
Permalink:  ../557C5476.4060703@hogranch.com/
Also on:    postgresql.org/message-id/557C5476.4060703@hogranch.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: pierce@hogranch.com
  Subject: Re: BUG #13438: Restore using GUI client - Data Not Loading
  In-Reply-To: <557C5476.4060703@hogranch.com>
  References: <20150612185020.32367.54876@wrigleys.postgresql.org> <16811.1434211031@sss.pgh.pa.us> <557C5476.4060703@hogranch.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