pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tsirkin Evgeny <tsurkin@mail.jct.ac.il>
To: Ian FREISLICH <if@hetzner.co.za>
Cc: pgsql-admin@postgresql.org
Subject: Re: Schema authorization after create database.
Date: Thu, 11 Aug 2005 13:57:07 +0300
Message-ID: <42FB2F03.9040209@mail.jct.ac.il> (raw)
In-Reply-To: <E1E39Rt-0004F3-5l@hetzner.co.za>
References: <E1E39Rt-0004F3-5l@hetzner.co.za>


We have simular behavor:
createdb -U user1 mydb
pg_restore -U user1 -d mydb filename
And the pg_restore complains about the wrong user .I have alwais wolk 
around this as supreuser.
Evgeny
Ian FREISLICH wrote:

>Hi
>
>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?
>
>Our work around is to drop the public schema and recreate it after
>reconnecting as the database owner, but that seems like work I
>shouldn't have to do.
>
>Is this a problem or am I expecting something that I shouldn't?
>
>Ian
>
>--
>Ian Freislich
>
>---------------------------(end of broadcast)---------------------------
>TIP 9: In versions below 8.0, the planner will ignore your desire to
>       choose an index scan if your joining column's datatypes do not
>       match
>  
>




view thread (4+ messages)  latest in thread

Message-ID: <42FB2F03.9040209@mail.jct.ac.il>
Permalink:  ../42FB2F03.9040209@mail.jct.ac.il/
Also on:    postgresql.org/message-id/42FB2F03.9040209@mail.jct.ac.il

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tsurkin@mail.jct.ac.il, if@hetzner.co.za
  Subject: Re: Schema authorization after create database.
  In-Reply-To: <42FB2F03.9040209@mail.jct.ac.il>
  References: <E1E39Rt-0004F3-5l@hetzner.co.za> <42FB2F03.9040209@mail.jct.ac.il>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox