dbTalk Databases Forums  

[BUGS] relation "pg_user" does not exist

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] relation "pg_user" does not exist in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rick Roman
 
Posts: n/a

Default [BUGS] relation "pg_user" does not exist - 03-02-2005 , 10:20 AM






I am running PostgreSQL 7.4.7 on Fedora Core 3. I get a lot of
warnings from pgAdmin III:

relation "pg_user" does not exist

but it doesn't seem to prevent me from doing most operations. More
seriously, I cannot execute a backup. I get the following message:

*****************************************
/usr/bin/pg_dump -i -h localhost -p 5432 -U postgres -F c -b -v -f
"testbackupfile" rickdb
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 datname = 'rickdb'
pg_dump: *** aborted because of error

Process returned exit code 1.
******************************************

Indeed, if I log in as -U postgres -d template1 and select * from
pg_user, the view does not exist. Anybody have an idea why this view
was not created on install and what I can do to correct the situation?



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly

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

Default Re: [BUGS] relation "pg_user" does not exist - 03-02-2005 , 01:48 PM






"Rick Roman" <rick (AT) cotse (DOT) net> writes:
Quote:
I am running PostgreSQL 7.4.7 on Fedora Core 3. I get a lot of
warnings from pgAdmin III:

relation "pg_user" does not exist
You've probably been bit by the problems with SELinux disabling parts of
the initdb script. You'll need to re-initdb after installing the latest
RPMs (postgresql 7.4.7-3.FC3.1, not sure which selinux-policy-targeted
is current). Alternatively, you can shut off SELinux enforcement while
running the older initdb.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org


Reply With Quote
  #3  
Old   
Rick Roman
 
Posts: n/a

Default Re: [BUGS] relation "pg_user" does not exist - 03-02-2005 , 04:47 PM



Quote:
"Rick Roman" <rick (AT) cotse (DOT) net> writes:
I am running PostgreSQL 7.4.7 on Fedora Core 3. I get a lot of
warnings from pgAdmin III:

relation "pg_user" does not exist

You've probably been bit by the problems with SELinux disabling parts
of
the initdb script. You'll need to re-initdb after installing the
latest
RPMs (postgresql 7.4.7-3.FC3.1, not sure which selinux-policy-targeted
is current). Alternatively, you can shut off SELinux enforcement
while
running the older initdb.

regards, tom lane

It looks like 7.4.7 is what's currently in distribution on up2date, so
I tried running initdb with SE Linux off with my current 7.4.7. This
worked fine except that, if I turn SE Linux back on, the Postgres
server will no longer start up.

I guess I'll just leave SE Linux off until 7.4.7-3 is available. It's
just a dev box anyway. Thanks for your help!

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


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

Default Re: [BUGS] relation "pg_user" does not exist - 03-02-2005 , 05:27 PM



"Rick Roman" <rick (AT) cotse (DOT) net> writes:
Quote:
You'll need to re-initdb after installing the latest
RPMs (postgresql 7.4.7-3.FC3.1, not sure which selinux-policy-targeted
is current).

It looks like 7.4.7 is what's currently in distribution on up2date,
Dunno what your up2date tool is looking at, but 7.4.7-3.FC3.1 was
pushed to the Fedora download servers on 22-Feb. Look for instance at
http://download.fedora.redhat.com/pu...pdates/3/i386/

Personally I use "yum" not up2date to track Fedora 3 package updates.
I am not sure that anyone is maintaining an up2date feed for Fedora.

regards, tom lane

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


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.