Add custom properties to a column's definition (pg_attribute) - Mailing list pgsql-general

From Brooke Beacham
Subject Add custom properties to a column's definition (pg_attribute)
Date
Msg-id CADAHvivTvAKKsabQPTdwYzG69vChjoaeiYHLpddHbDsCNmPqGQ@mail.gmail.com
Whole thread Raw
Responses Re: Add custom properties to a column's definition (pg_attribute)  (Raymond O'Donnell <rod@iol.ie>)
Re: Add custom properties to a column's definition (pg_attribute)  (David Johnston <polobo@yahoo.com>)
List pgsql-general
Can anyone suggest a way to associate a set of custom properties (key/value pairs) with a column's definition (ie pg_attribute)?

(without having to replicate/maintain a table of columns separately from the system catalog)

For example:
* I have a table with 50 columns
* I'd like to 'flag' 30 of those columns as group - 'A' and the other 20 as group - 'B'


So I'd like a way to add custom metdata (k/v pairs) to a column's definition (not the actual rows of data).

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Index space growing even after cleanup via autovacuum in Postgres 9.2
Next
From: Raymond O'Donnell
Date:
Subject: Re: Add custom properties to a column's definition (pg_attribute)