agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: Paul M. Aoki <aoki@cs.berkeley.edu>
To: N B Idris <Norbik.B.Idris@cm.cf.ac.uk>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: not db owner?
Date: Thu, 25 Aug 94 17:35:18 -0700
Message-ID: <199408260035.RAA25812@faerie.CS.Berkeley.EDU> (raw)
In-Reply-To: <9408250729.AA06357@diamond.cm.cf.ac.uk>

N B Idris <Norbik.B.Idris@cm.cf.ac.uk> writes:
> I created a database `foo' (version 4.1), some classes in it, and 
> populated them. Everything was OK.
> Then, the next time I tried to access 'foo' via the monitor,
> postgres complained that I was not the db owner! Strange!
> FATAL 1:Aug 25 07:39:07:process userid (848) != database owner (6)

this is not all that strange.  the postmaster (and its child backend
server processes) is currently running with user id 848, which is
probably your user id.  the database files are owned by user id 6,
which is probably that of "postgres".  they need to be the same.  that
is, the server process uid must be the same as that of the owner of
the database files.  assuming that the system was installed by uid 6
(i assume that because uid 6 owns the files), "6" is now stored in the
database as the db superuser's uid and you must now always start the
postmaster with uid 6.
--
  Paul M. Aoki          |  University of California at Berkeley
  aoki@CS.Berkeley.EDU  |  Dept. of EECS, Computer Science Division (#1776) 
                        |  Berkeley, CA 94720-1776

==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"

   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================



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 using the --to and --cc options:
  reply via email

  To: postgres@postgres.berkeley.edu
  Cc: aoki@cs.berkeley.edu, Norbik.B.Idris@cm.cf.ac.uk
  Subject: Re: not db owner?
  In-Reply-To: <199408260035.RAA25812@faerie.CS.Berkeley.EDU>

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

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