Comment on Database and Admin Metadata

Поиск
Список
Период
Сортировка
От Kuhn, Dylan K (4520500D)
Тема Comment on Database and Admin Metadata
Дата
Msg-id 78ED1F30F0D85B4698FBD6CF2A5AC8F5A576D2@NAWECHLKEX01VA.nadsuswe.nads.navy.mil
обсуждение исходный текст
Ответы Re: Comment on Database and Admin Metadata
Re: Comment on Database and Admin Metadata
Список pgsql-admin

Greetings,

We are storing some metadata about a database in the database comment.  In short my question is, is there a better place?

We use a version-controlled model for our database design, and would like to know what model version any particular database implements.  A client can thereby determine by the model version if it is able to use the database. 

Bug #880 (http://archives.postgresql.org/pgsql-bugs/2003-01/msg00131.php) discusses some of the problems with comments on databases.  You have to know the current database name to create the comment, but you can't use current_database(), and you can't create a comment on any other database.  Also, you have to connect to the database to read the comment (which is not horrible, but not obvious either when looking at commands like '\l+').

This seems like it would be a common problem.  I'd like to know if there is a better place for such database-level metadata, and if there are plans to fix/change COMMENT ON DATABASE.  Or even if anyone else is deleting and adding records to pg_description like we are to accomplish this.

Thanks,
Dylan Kuhn

В списке pgsql-admin по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Problems configuring --with-python on RedHat7.2
Следующее
От: "David F. Skoll"
Дата:
Сообщение: Re: Comment on Database and Admin Metadata