dbTalk Databases Forums  

Re: ERROR: Relation "pg_user" does not exist

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss Re: ERROR: Relation "pg_user" does not exist in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
scott.marlowe
 
Posts: n/a

Default Re: ERROR: Relation "pg_user" does not exist - 07-02-2003 , 09:24 AM






Well that's odd, since 7.2 has a pg_user table. hrm...

On Wed, 2 Jul 2003, S.Peppe wrote:

Quote:
Ahem... the postgresql version on the server is 7.2.1-2woody2.

Sam.

On Wed, 2 Jul 2003, scott.marlowe wrote:

What he meant was what VERSION of postgresql is the server using. :-)

On Wed, 2 Jul 2003, S.Peppe wrote:

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.Peppe (AT) soton (DOT) 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






---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: ERROR: Relation "pg_user" does not exist - 07-02-2003 , 09:36 AM






"scott.marlowe" <scott.marlowe (AT) ihs (DOT) com> writes:
Quote:
Well that's odd, since 7.2 has a pg_user table. hrm...
Well, it's a view actually, and the backend would continue to run just
fine if someone were to drop or rename the view. psql has some built-in
queries that expect it to be there though.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)



Reply With Quote
  #3  
Old   
S.Peppe
 
Posts: n/a

Default Re: ERROR: Relation "pg_user" does not exist - 07-02-2003 , 09:40 AM



OK, here's what I did...

I manually deleted the contents of the /var/lib/postgres directory, did
a dpkg -P postgresql and/or aptitude remove postgresql postgresql-client
to uninstall postgresql (yes, the server is running Debian), deleted
/var/lib/postgres between uninstalling and reinstalling postgresql
(checked that /var/lib/postgres was indeed gone), and reinstalled
postgresql and postgresql-client.

Heavy-handed? Yes, but I couldn't find a solution, and I couldn't
afford to wait any longer. Shame really, but it now seems to
work. Thanks to everyone for offering their suggestions. All the very
best to you!

Regards,

Sam.

On Wed, 2 Jul 2003, scott.marlowe wrote:

Quote:
Well that's odd, since 7.2 has a pg_user table. hrm...

On Wed, 2 Jul 2003, S.Peppe wrote:

Ahem... the postgresql version on the server is 7.2.1-2woody2.

Sam.

On Wed, 2 Jul 2003, scott.marlowe wrote:

What he meant was what VERSION of postgresql is the server using. :-)

On Wed, 2 Jul 2003, S.Peppe wrote:

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.Peppe (AT) soton (DOT) 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


---------------------------(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



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.