Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpgxO-00038s-9J for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Oct 2015 18:20:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZpgxM-0002z4-SK for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Oct 2015 18:20:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZpgxM-0002yy-IR for pgsql-bugs@postgresql.org; Fri, 23 Oct 2015 18:20:48 +0000 Received: from p12.web-hosting.com ([192.64.118.62]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZpgxJ-0001TG-9n for pgsql-bugs@postgresql.org; Fri, 23 Oct 2015 18:20:47 +0000 Received: from [208.74.121.106] (port=16168 helo=Macintosh-2.local) by premium12.web-hosting.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1ZpgxD-0028V8-UC; Fri, 23 Oct 2015 14:20:40 -0400 Subject: =?UTF-8?Q?pg=5frestore_WAS_Re:__BUG_#13702:_pg=5fdump_interpr?= =?UTF-8?B?ZXRzIOKAnD3igJ0gaW4gYSBkYiBuYW1lIGluY29ycmVjdGx5?= To: David Gould References: <20151023003445.931.91267@wrigleys.postgresql.org> <56298DAC.3070906@felipegasper.com> <20151023054510.5b5467c6@engels> Cc: "David G. Johnston" , "pgsql-bugs@postgresql.org" From: Felipe Gasper Message-ID: <562A7A76.9000700@felipegasper.com> Date: Fri, 23 Oct 2015 13:20:38 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151023054510.5b5467c6@engels> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - premium12.web-hosting.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - felipegasper.com X-Get-Message-Sender-Via: premium12.web-hosting.com: authenticated_id: fgasper/from_h X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched X-Pg-Spam-Score: -2.6 (--) 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 Apparently 9.0 can’t pg_restore DBs that have equals signs in them...at least, such is the case with pg_restore on 9.0.18. It gets confused by the “=”, even when it’s in the --dbname argument. To me, that seems like a bug, as there’s no reason that the --dbname argument should be interpreted as anything other than the name of a database. Does anyone here happen to know when pg_restore offered alternative ways of specifying the database? -FG On 23 Oct 2015 7:45 AM, David Gould wrote: > On Thu, 22 Oct 2015 20:30:20 -0500 > Felipe Gasper wrote: > >> Interesting -- also, in 9.0 I *can* do: >> >> dbname='...' >> >> … and it works. Undocumented, apparently (?), but it does the job. >> >> But, I actually have to support all the way back to 8.1, and I’m a bit >> leery of relying on undocumented (?) features for our backup >> functionality. Hopefully down the road we can just move everything to >> >=9.3, and peace and love will reign. :) > > You can dump and load older version database from newer version clients. > The dbname parsing problem you are having is on the client, not the server, > so if you can arrange to take the backup with a more current client then > one of the suggestions in this thread will work for you. > > -dg > -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs