Re: Column descriptions - could they be propagated to new tables?

From: Jim Nasby <jnasby(at)pervasive(dot)com>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: "Clive Page" <cgp(at)star(dot)le(dot)ac(dot)uk>, pgsql-general(at)postgresql(dot)org
Subject: Re: Column descriptions - could they be propagated to new tables?
Date: 2006-04-06 21:18:11
Message-ID: 4D8D0951-518D-4C55-B6E4-32FF939CBF9D@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Apr 5, 2006, at 12:15 PM, Merlin Moncure wrote:
> On 4/5/06, Clive Page <cgp(at)star(dot)le(dot)ac(dot)uk> wrote:
>> Since I discovered the facilities in Postgres for providing and
>> listing
>> column descrptions, I have found them very useful, especially for
>> adding a
>> string showing physical units to my columns.
>
> Have you considered using domains for these types? You can comment
> the domain appropriately. While the domain description will not show
> in \d+. to get the description you can do \dT on the domain.
>
> Based on your background I also think you might appreciate domains
> from a design perspective. There are a couple of disadvantages to
> using them so I'd suggest reading about them.

I seem to recall some astronomer having created some custom types for
storing astronomical data in PostgreSQL. Or perhaps he was using
PostGIS. I know that other astronomers are using PostgreSQL/PostGIS
so if you look around you might be able to save yourself quite a bit
of work.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2006-04-06 21:19:52 Re: Debian package for freeradius_postgresql module
Previous Message SunWuKung 2006-04-06 21:12:26 Re: case insensitive match in unicode