472,805 Members | 830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,805 software developers and data experts.

ERROR: Relation "pg_user" does not exist

Hi there!

I'm really new at this game, so please forgive me if my request is at
all irritating. I have installed PostgreSQL onto a Debian/Linux machine,
and I have just upgraded PostgreSQL via the apt-get update & upgrade
commands. However, whenever I get into the PostgreSQL interactive
terminal thus

sp@vanthoff:~$ psql -U postgres SHG

it returns this:

ERROR: Relation "pg_user" does not exist
Welcome to psql, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quit

Now, if I try to connect to the database SHG:

SHG=> \c SHG

it returns this:

You are now connected to database SHG.
ERROR: Relation "pg_user" does not exist

These errors are encountered even when I'm logged on as root. I'm not
sure what other information you would require from me to answer this
question, so please do not hesitate to ask for it. Has anyone ever come
across this problem, and if so, how was it resolved? Many thanks in
advance.

Regards,

Sam.

--
************************************************** ********
Sam Peppe Tel : +44 (0)23 8059 3587
Postdoctoral Research Fellow Fax : +44 (0)23 8059 3781
Department of Chemistry Email : sa**@soton.ac.uk
University of Southampton
HANTS SO17 1BJ http://www.combechem.org/
************************************************** ********

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 11 '05 #1
2 7088
"S.Peppe" <S.*****@soton.ac.uk> writes:
it returns this:
ERROR: Relation "pg_user" does not exist


Uh ... how old is the server you're connecting to, exactly?

The pg_user view has been standard for awhile, I can't blame your
psql for assuming it exists ...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 11 '05 #2
Thanks for your reply, Tom. The server I'm connecting to is only about 3
months old - that shouldn't be the problem then, as far as I can
tell. Thanks again.

Regards,

Sam.

On Wed, 2 Jul 2003, Tom Lane wrote:
"S.Peppe" <S.*****@soton.ac.uk> writes:
it returns this:
ERROR: Relation "pg_user" does not exist


Uh ... how old is the server you're connecting to, exactly?

The pg_user view has been standard for awhile, I can't blame your
psql for assuming it exists ...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 11 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Christian Wetzig | last post by:
hi, i have a table with test_field of type "TEXT". when i do: select test_field from test where id=1; the connection (with psql) hangs and no output is received, so i have to kill psql. ...
7
by: Andrei Ivanov | last post by:
This happend again, but now, postgresql tells me where it happens: pg_dump: SQL command failed pg_dump: Error message from server: ERROR: did not find '}' at end of input node pg_dump: The...
3
by: Greg Stark | last post by:
I haven't seen it mentioned, but I could have missed it. It seems like this kind of thing must be known and probably fixed already? I'm actually still using 7.4 beta 5. IIRC that was the last beta...
0
by: David Suela Fernández | last post by:
Hi! I have a debian woody with postgresql 7.4.2. When i try to use pg_dump i get the next error: pg_dump: saving encoding pg_dump: saving database definition pg_dump: SQL command failed...
14
by: David Suela Fernández | last post by:
Hi! Is it possible to copy/migrate one database from one postgres server to other copying just the files in /var/lib/postgres/data/ ? I can't use pg_dump because it give me an error. I think...
7
by: olav78 | last post by:
create database test if not exists. Someone know how to do this in postgreSQL?
9
by: mamoon | last post by:
hi all, Question: i have a table in a database of 6 columns and 630 rows.i want to add one new column to this table and also update this column starting from row 1 to row 630. System...
1
by: kaywin | last post by:
pg_dump: SQL command failed pg_dump: Error message from server: ERROR: relation "pg_user" does not exist pg_dump: The command was: SELECT (SELECT usename FROM pg_user WHERE usesysid = datdba) as...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.