From: | Oliver Elphick <olly(at)lfix(dot)co(dot)uk> |
---|---|
To: | javier garcia <andresjavier(dot)garcia(at)wanadoo(dot)es> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Database superuser |
Date: | 2002-12-20 15:05:41 |
Message-ID: | 1040396741.1311.26.camel@linda.lfix.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, 2002-12-19 at 17:11, javier garcia wrote:
> Hi all;
> I think these are absolutly basic question:
>
> I guess every database can have a different super user. Isn't it?
No. Normally, users are defined once for the whole set of databases
handled by one postmaster (one $PGDATA directory). Superuser authority
attaches to the user alone.
There is a new facility in 7.3 to define per-database users, but it is
turned off by default. (The GUC name is DB_USER_NAMESPACE; see admin
manual 3.4.4.)
> Other question is: how can I know how is the superuser of a database?
SELECT usename FROM pg_user WHERE usesuper;
--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"And she shall bring forth a son, and thou shall call
his name JESUS; for he shall save his people from
their sins." Matthew 1:21
From | Date | Subject | |
---|---|---|---|
Next Message | Lee Kindness | 2002-12-20 15:07:40 | Re: [GENERAL] RPMS for Redhat 7.3 ?? |
Previous Message | Tom Lane | 2002-12-20 15:03:19 | Re: Unable to format timestamp with time zone; internal coding error |