From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Mike Mascari <mascarm(at)mascari(dot)com> |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: COMMENT ON [GROUP/USER] |
Date: | 2004-03-08 20:46:27 |
Message-ID: | 200403082046.i28KkR413900@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
This doesn't look good. If we throw a WARNING, why do we not insert
anything into pg_description. Seems we should throw an error, or do the
insert with a warning.
---------------------------------------------------------------------------
Mike Mascari wrote:
> Andrew Dunstan wrote:
> > Bruce Momjian wrote:
> >
> >> Another problem is that pg_description is per-database, while
> >> pg_user/group are global for all databases.
> >>
> >>
> >>
> > databases are also per cluster, but we have comments on those.
> >
> > Could we keep the user/group comments in those tables instead of in
> > pg_description?
>
> The comments are stored only in the database's pg_description where
> the COMMENT ON took place. This caused dump/reload problems. I
> believe Rod Taylor added the new warning:
>
> [estore(at)lexus] select count(*) from pg_description;
> count
> -------
> 1541
> (1 row)
>
> [estore(at)lexus] COMMENT ON DATABASE test IS 'Hello';
> WARNING: database comments may only be applied to the current database
> COMMENT
>
> [estore(at)lexus] select count(*) from pg_description;
> count
> -------
> 1541
> (1 row)
>
> [estore(at)lexus] COMMENT ON DATABASE estore IS 'A good comment';
> COMMENT
>
> [estore(at)lexus] select count(*) from pg_description;
> count
> -------
> 1542
> (1 row)
>
> [test(at)lexus] select count(*) from pg_description;
> count
> -------
> 1541
> (1 row)
>
>
> Mike Mascari
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Rod Taylor | 2004-03-08 20:56:06 | Re: COMMENT ON [GROUP/USER] |
Previous Message | Mike Mascari | 2004-03-08 20:20:17 | Re: COMMENT ON [GROUP/USER] |