pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bethany A.Benzur <bethany.benzur@oit.gatech.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_user does not exist
Date: Tue, 17 Feb 2004 23:06:00 -0500
Message-ID: <20288.1077077160@sss.pgh.pa.us> (raw)
In-Reply-To: <9B5FE928-61A5-11D8-9862-000A957A02C8@oit.gatech.edu>
References: <9B5FE928-61A5-11D8-9862-000A957A02C8@oit.gatech.edu>

"Bethany A.Benzur" <bethany.benzur@oit.gatech.edu> writes:
> I have been running postgres for quite some time with this problem: 
> whenever a user logs in or issues almost any command in the "psql" 
> client, they get this error:

> -bash-2.05b$ psql
> ERROR:  Relation "pg_user" does not exist

Hmmm ... I'm wondering about version mismatches between your psql and
your backend.  Does "psql -V" agree with the backend version?

> At first I thought it had something to do with my using ident 
> authentication, but after some research it seems my "template1" 
> database is corrupt and missing some pretty essential elements. If I 
> could just build a new template1 or run initdb again, everything might 
> be OK... but the problem here is that there isn't much I can do without 
> being able to use pg_dump to export/backup my databases first!!

You can rebuild template1 from template0 (... that's pretty much why
template0 exists...).  There are some gotchas in this process, see this
link for a walkthrough:
http://techdocs.postgresql.org/techdocs/pgsqladventuresep1.php

However, I am not totally convinced that that's where your problem is.
Do you see failures when you are connected to other databases besides
template1?

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <20288.1077077160@sss.pgh.pa.us>
Permalink:  ../20288.1077077160@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20288.1077077160@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, bethany.benzur@oit.gatech.edu
  Subject: Re: pg_user does not exist
  In-Reply-To: <20288.1077077160@sss.pgh.pa.us>
  References: <9B5FE928-61A5-11D8-9862-000A957A02C8@oit.gatech.edu> <20288.1077077160@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