LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 11-26-2005, 08:24 PM   #1
mraray
Member
 
Registered: Sep 2005
Posts: 49

Rep: Reputation: 15
postgres users


Hi,

I am new to postgres (using for the first time) - and I am having problems creating user accounts (and granting permissions).

I have a user called 'matrix' and a database called 'matrix' - I am trying to grant all privileges to this database for the given user - ie

Quote:
matrix=# \z matrix;
Access privileges for database "matrix"
Schema | Table | Access privileges
--------+-------+-------------------
(0 rows)

matrix=# select * from pg_user;
usename | usesysid | usecreatedb | usesuper | usecatupd | passwd | valuntil | useconfig
----------+----------+-------------+----------+-----------+----------+---------- +-----------
postgres | 1 | t | t | t | ******** | |
matrix | 101 | t | f | f | ******** | [
Then I try and grant permissions -

Quote:
matrix=# GRANT ALL ON matrix TO matrix;
ERROR: relation "matrix" does not exist
I have spent a fair bit of time googling, and looking at the postgres site...but I am obviously missing something - Any advice greatly appreciated.


Thanks,
Andrew.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postgres Hiper1 Linux - Newbie 8 04-10-2005 05:43 PM
postgres and mysql varun_33 Linux - Software 1 02-12-2005 07:54 AM
Listing users in postgres narc Linux - Software 1 01-10-2005 03:06 PM
Installing Postgres 7.3 Hiper1 Linux - Software 0 12-01-2004 01:38 AM
PostGres Installation.... gvsprasad Linux - Enterprise 1 09-01-2004 05:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration