postgreSQL problem: Relation "pg_user" does not exist
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[postgres@bs2 postgres]$ createdb -U postgres test1
CREATE DATABASE
[postgres@bs2 postgres]$ psql test1
ERROR: Relation "pg_user" does not exist
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
test1=> \l
ERROR: Relation "pg_user" does not exist
ERROR: Relation "pg_user" does not exist
test1=> CREATE TABLE cities1 ( name varchar(80), location point);
CREATE
test1=> \l
ERROR: Relation "pg_user" does not exist
ERROR: Relation "pg_user" does not exist
test1=> INSERT INTO cities VALUES ('San Francisco', '(-194.0, 53.0)');
INSERT 24659 1
test1=>SELECT * FROM cities;
name | location
---------------+-----------
San Francisco | (-194,53)
(1 row)
test1=>
the problem is that I can't connect to it with odbc driver
I think that there are come config files missing.
How does pq_user suppose to look like. I have modified pg_hba.conf to allow connections from different computers, but keep getting messages
my hba_conf
#local all ident sameuser
local all trust
host all 192.168.0.0 255.255.0.0 trust
The problem is that I have tried to set it up on different machines and always getting same error.
I'll try to compile it also, but I think I have done that too
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.