Re: [GENERAL] SELECT from other's tables

From: Herouth Maoz <herouth(at)oumail(dot)openu(dot)ac(dot)il>
To: "Sergei Chernev" <ser(at)nsu(dot)ru>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] SELECT from other's tables
Date: 1998-09-14 15:18:27
Message-ID: l03110708b222e330f229@[147.233.159.109]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

At 14:55 +0200 on 14/9/98, Sergei Chernev wrote:

> Hello,
> Sorry if it's FAQ but, how to select from smb's tables. So, I have an access
> to tables:
> bob=> grant all on AA to ser;
> CHANGE
> ser=>select * from aa;
> ERROR: aa: Table does not exist.

The other person has to connect to the same database.

What you did here is like this:

- Bob created (or was given) a database named bob.
- Ser created (or was given) a database named ser.
- Bob created a table AA in the database bob.
- Bob granted permission to Ser to access the table AA in database bob.
- Ser connects to database ser, looks for table AA, but there
is no such table in database ser. Only in database bob.

So, Ser should connect to database bob, by using "psql bob", not just "psql".

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kollar Lajos 1998-09-15 11:01:21 insert...
Previous Message Sergei Chernev 1998-09-14 12:55:35 SELECT from other's tables