Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UeuzZ-00045U-5g for pgsql-bugs@arkaria.postgresql.org; Tue, 21 May 2013 22:25:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UeuzY-0005Xa-EC for pgsql-bugs@arkaria.postgresql.org; Tue, 21 May 2013 22:25:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UeuzX-0005XC-Ro for pgsql-bugs@postgresql.org; Tue, 21 May 2013 22:25:11 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UeuzV-0006ox-7E for pgsql-bugs@postgresql.org; Tue, 21 May 2013 22:25:11 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UeuzU-0005ta-8K for pgsql-bugs@postgresql.org; Tue, 21 May 2013 22:25:08 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1UeuzP-00025m-1h for pgsql-bugs@postgresql.org; Tue, 21 May 2013 22:25:03 +0000 Date: Tue, 21 May 2013 22:25:03 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #8174: Ownership reassigned public schema restored with postgres as owner To: pgsql-bugs@postgresql.org From: polobo@yahoo.com X-Pg-Spam-Score: -0.4 (/) 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: 8174 Logged by: David Johnston Email address: polobo@yahoo.com PostgreSQL version: 9.0.13 Operating system: Ubuntu Linux 10.04 Description:=20=20=20=20=20=20=20=20 Having performed a "pg_dump --schema_only --format=3Dc" of a database I used "pg_restore -C" (after dumping and loading globals) to recreate the database on a new machine and the owner of the "public" schema on the new machine was "postgres" while the owner within the existing database is not. There are numerous other schemas in the database for which the owner is the "not postgres" user and all of those schemas have the proper ownership assigned - it is just the public schema that is at issue. The database itself is (correctly) created with ownership assigned to this other role as well. I would expect that the public schema owner would match that in the source database but maybe I am missing something. David J. --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs