Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z3nv4-00075Q-90 for pgsql-bugs@arkaria.postgresql.org; Sat, 13 Jun 2015 16:04:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z3nv3-0004Xo-Ny for pgsql-bugs@arkaria.postgresql.org; Sat, 13 Jun 2015 16:04:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z3nv2-0004Xh-Ki for pgsql-bugs@postgresql.org; Sat, 13 Jun 2015 16:04:28 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Z3nuv-0000aH-FT for pgsql-bugs@postgresql.org; Sat, 13 Jun 2015 16:04:27 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id t5DG4BH24711 for ; Sat, 13 Jun 2015 09:04:11 -0700 Message-ID: <557C5476.4060703@hogranch.com> Date: Sat, 13 Jun 2015 09:04:06 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #13438: Restore using GUI client - Data Not Loading References: <20150612185020.32367.54876@wrigleys.postgresql.org> <16811.1434211031@sss.pgh.pa.us> In-Reply-To: <16811.1434211031@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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