X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A68BC52B87 for ; Thu, 11 Aug 2005 11:09:25 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 52494-09 for ; Thu, 11 Aug 2005 14:09:24 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id B028852BC3 for ; Thu, 11 Aug 2005 11:09:23 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j7BE90kP021955; Thu, 11 Aug 2005 10:09:00 -0400 (EDT) To: Ian FREISLICH Cc: pgsql-admin@postgresql.org Subject: Re: Schema authorization after create database. In-reply-to: References: Comments: In-reply-to Ian FREISLICH message dated "Thu, 11 Aug 2005 11:34:05 +0200" Date: Thu, 11 Aug 2005 10:08:59 -0400 Message-ID: <21954.1123769339@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200508/144 X-Sequence-Number: 18463 Ian FREISLICH writes: > I ran into this little astonishment yesterday on 7.4.8. When I > create a database connected as the super user using: > CREATE DATABASE foo OWNER = foo; > The database is indeed owned by user foo, but the automatically > created public schema is is owned by the database super user. Should > this schema not be created as owned by the database owner specified > in the CREATE DATABASE command? That's the way it's supposed to work. CREATE DATABASE does not change anything inside the copied database. regards, tom lane