1 |
On Dec 15, 2011 8:52 PM, "Joseph" <syscon780@×××××.com> wrote: |
2 |
> |
3 |
> On 12/15/11 16:11, Pandu Poluan wrote: |
4 |
>> |
5 |
>> |
6 |
>> Hmmm... |
7 |
>> |
8 |
>> Have you GRANT the 'sql-ledger' user the CONNECT privilege to the |
9 |
>> database? |
10 |
>> |
11 |
>> Rgds, |
12 |
> |
13 |
> |
14 |
> After installing postgresql I run: |
15 |
> emerge --config =dev-db/postgresql-server-9.1.1 |
16 |
> |
17 |
> started postgresql-9.1 |
18 |
> # su - postgres |
19 |
> postgres@syscon5 ~ $ createuser -d sql-ledger |
20 |
> y |
21 |
> y |
22 |
> exit |
23 |
> |
24 |
> that was it. |
25 |
> |
26 |
> # psql -U postgres -l |
27 |
> List of databases |
28 |
> Name | Owner | Encoding | Collate | Ctype | Access |
29 |
privileges |
30 |
-----------+----------+----------+-------------+-------------+----------------------- |
31 |
> postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | template0 |
32 |
| postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres + |
33 |
> | | | | | |
34 |
postgres=CTc/postgres |
35 |
> template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | |
36 |
=c/postgres + |
37 |
> | | | | | |
38 |
postgres=CTc/postgres |
39 |
> -- |
40 |
> Joseph |
41 |
> |
42 |
|
43 |
Okay, according to the documentation on GRANT, "=c/postgres" means the |
44 |
public is granted "CONNECT" privilege, granted by the user postgres. So no |
45 |
problem there. |
46 |
|
47 |
Hmm... wonder what's wrong... |
48 |
|
49 |
Rgds, |