Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1adiIT-0005Zt-V9 for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Mar 2016 17:53:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1adiIT-0001jp-HL for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Mar 2016 17:53:21 +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 1adfqM-0007B4-Qk for pgsql-bugs@postgresql.org; Wed, 09 Mar 2016 15:16:10 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1adfqF-0001EV-BP for pgsql-bugs@postgresql.org; Wed, 09 Mar 2016 15:16:10 +0000 MIME-Version: 1.0 Subject: BUG #14009: pg_restore not restoring privilegs when one login/group role is missing To: pgsql-bugs@postgresql.org From: alexander@spiteri.org Date: Wed, 09 Mar 2016 15:15:10 +0000 Message-ID: <20160309151510.8903.22052@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 The following bug has been logged on the website: Bug reference: 14009 Logged by: Alexander Spiteri Email address: alexander@spiteri.org PostgreSQL version: 9.5.1 Operating system: CentOS Linux release 7.2.1511 (Core) Description: 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. This behaviour is puzzling. I expected to get errors for users that are not found but why aren't privilges assigned to users that do exist? I reproduced this behaviour on different installations running version 9.5.1 and 9.3.11. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs