Comment on Database and Admin Metadata - Mailing list pgsql-admin

From Kuhn, Dylan K (4520500D)
Subject Comment on Database and Admin Metadata
Date
Msg-id 78ED1F30F0D85B4698FBD6CF2A5AC8F5A576D2@NAWECHLKEX01VA.nadsuswe.nads.navy.mil
Whole thread Raw
Responses Re: Comment on Database and Admin Metadata  ("David F. Skoll" <dfs@roaringpenguin.com>)
Re: Comment on Database and Admin Metadata  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Problems configuring --with-python on RedHat7.2
Next
From: "David F. Skoll"
Date:
Subject: Re: Comment on Database and Admin Metadata