473,729 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.u k
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 7205
"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
2273
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. this occurs, at first sight, if length(test_field)>32748.
7
2673
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 command was: select (select usename from pg_user where usesysid = datdba) as dba, pg_encoding_to_char(encoding) as encoding, datpath from pg_database where datname = 'dc' pg_dumpall: pg_dump failed on database "dc", exiting
3
1769
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 before the release and there were no changes for 7.4. db=> select table_name from information_schema.tables; ERROR: unrecognized privilege type: "RERERENCES" db=> \d information_schema.tables
0
1696
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 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 dba, pg_encoding_to_char(encoding) as encoding, datpath FROM pg_database WHERE...
14
5758
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 than the instalation of postgres is corrupt because it give me a lot of error like "ERROR: relation "pg_catalog.pg_user" does not exist". Thanks,
7
58622
by: olav78 | last post by:
create database test if not exists. Someone know how to do this in postgreSQL?
9
10113
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 information: 1.Linux ac8d7f39.ipt.aol.com 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux 2. PostgreSQL 7.4.6 My trial: 1. i added one column with ALTER TABLE command
1
4480
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 dba, pg_encoding_to_char(encoding) as encoding, datpath FROM pg_database WHERE datname = 'dbname' Can anybody suggest to take the backup??
0
8921
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9284
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9202
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4528
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4796
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2683
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2165
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.