| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: [BUGS] createdb comments |
| Date: | 2002-06-12 17:29:33 |
| Message-ID: | 200206121729.g5CHTXd09216@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs pgsql-general |
Nigel J. Andrews wrote:
>
>
> [I've changed the list to -general from -bugs. I hope that's acceptable]
>
>
> Thanks Bruce,
>
> If I'd realised createdb was that simple I'd have done it myself. However, I
> think I was locked into the idea that the SQL command should work as well.
>
> I'm afraid I don't know the standard but from the command I would assume that
> the COMMENT ON DATABASE was intended to work on any database from any
> database. Is that incorrect, possibly because of security concerns?
No, it can't because pg_description is per-database, while pg_database
is global to all databases. No way to handle this because we can't
update every pg_description in every database. We could update just
template1's pg_description, but only the super-user can do that. What
we do is to just update the datbase description stored in the current
database.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Chris Sutton | 2002-06-12 21:51:32 | select real returns nothing |
| Previous Message | Nigel J. Andrews | 2002-06-12 17:16:42 | Re: [BUGS] createdb comments |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Clark C . Evans | 2002-06-12 17:33:16 | "set nice" running a transaction in a lower priority? |
| Previous Message | Ericson Smith | 2002-06-12 17:25:16 | Re: optimizing SELECT with LIKE |