Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1affAf-0006mp-TD for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Mar 2016 02:57:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1affAf-00049Q-Ff for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Mar 2016 02:57:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1affAf-00049F-0c for pgsql-bugs@postgresql.org; Tue, 15 Mar 2016 02:57:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1affAb-0006XY-A0 for pgsql-bugs@postgresql.org; Tue, 15 Mar 2016 02:57:19 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u2F2vFd1027349; Mon, 14 Mar 2016 22:57:15 -0400 From: Tom Lane To: Alexander Spiteri cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14009: pg_restore not restoring privilegs when one login/group role is missing In-reply-to: References: <20160309151510.8903.22052@wrigleys.postgresql.org> <20365.1457555577@sss.pgh.pa.us> <4509.1457627094@sss.pgh.pa.us> Comments: In-reply-to Alexander Spiteri message dated "Mon, 14 Mar 2016 09:18:37 +0100" Date: Mon, 14 Mar 2016 22:57:15 -0400 Message-ID: <27348.1458010635@sss.pgh.pa.us> 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 Alexander Spiteri writes: > I tried the command as you suggested but still had the same issue. > [postgres@server4 ~]$ pg_restore -p 5432 -d stgsample04 > /var/lib/pgsql/data/dumps/stgsample01_schema.dump | psql Uh, no, you need to drop the -d switch from the pg_restore call ... (and the -p switch is useless as well) regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs