pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: wbohl@deepdata.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Non existent user error on restore
Date: Wed, 23 Jun 2004 11:43:05 -0400
Message-ID: <2866.1088005385@sss.pgh.pa.us> (raw)
In-Reply-To: <1088003009.28091.20.camel@sirio>
References: <1088003009.28091.20.camel@sirio>

Werner Bohl <wbohl@deepdata.com> writes:
> pg_restore: [archiver (db)] could not execute query: ERROR: user "100"
> does not exist

I'd suggest doing a plain text schema-only dump (pg_dump -s) and looking
through it for references to userid 100.  You have presumably got some
objects in the database that are owned by a now-gone user.  Fixing their
ownership would be the best long-term solution.

> Created a user with:
>   createuser -i 100 dropme
> Run the restore again, but gave same error!

I think you'd actually need "createuser 100", ie, the name not the sysid
is what's being complained of above.  It might be prudent to give it
sysid 100 as well, though.

			regards, tom lane



view thread (2+ messages)

Message-ID: <2866.1088005385@sss.pgh.pa.us>
Permalink:  ../2866.1088005385@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2866.1088005385@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, wbohl@deepdata.com
  Subject: Re: Non existent user error on restore
  In-Reply-To: <2866.1088005385@sss.pgh.pa.us>
  References: <1088003009.28091.20.camel@sirio> <2866.1088005385@sss.pgh.pa.us>

* 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