Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1adknd-0003NU-3p for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Mar 2016 20:33:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1adknc-0005SI-M6 for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Mar 2016 20:33:40 +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 1adkn0-0004m6-OW for pgsql-bugs@postgresql.org; Wed, 09 Mar 2016 20:33:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1adkmx-00083Y-7i for pgsql-bugs@postgresql.org; Wed, 09 Mar 2016 20:33:02 +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 u29KWvrK020366; Wed, 9 Mar 2016 15:32:57 -0500 From: Tom Lane To: alexander@spiteri.org cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14009: pg_restore not restoring privilegs when one login/group role is missing In-reply-to: <20160309151510.8903.22052@wrigleys.postgresql.org> References: <20160309151510.8903.22052@wrigleys.postgresql.org> Comments: In-reply-to alexander@spiteri.org message dated "Wed, 09 Mar 2016 15:15:10 +0000" Date: Wed, 09 Mar 2016 15:32:57 -0500 Message-ID: <20365.1457555577@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.org writes: > I have just installed a new instance of postgres 9.5.1 and have an issue > with restoring the database, specifically privilges of the login/group > roles. > In the past I was working with postgres 8.4 and when I took a backup from > the live server to the testing server pg_restore would grant all privilages > to login/group roles which existed on the testing server and give an error > for those that do not exist. > On the new 9.5.1 server when I try to restore a database, if one login/group > role does not exist pg_restore gives an error about it and then does not > grant any rights to all the other login/group roles that do exist. No errors > / notices are issued about the grants that are not applied. That's fairly hard to believe. Can you provide a self-contained test case? 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