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