From: Karsten Hilbert <Karsten.Hilbert@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Adding an extra boolean column to "information_schema.columns" or "pg_attribute"
Date: Sat, 30 Dec 2017 20:23:10 +0100
Message-ID: <20171230192310.GF5732@hermes.hilbert.loc> (raw)
In-Reply-To: <CADep2PN8vide36zQe5X+kTh5BFKkCudKTOM+C_J2KUSDnN5L7Q@mail.gmail.com>
References: <CADep2PN8vide36zQe5X+kTh5BFKkCudKTOM+C_J2KUSDnN5L7Q@mail.gmail.com>
On Sat, Dec 30, 2017 at 08:17:34PM +0100, GPT wrote:
> I would like to add an extra boolean attribute to table columns,
> something like NULL. Unfortunately Pg does not support such a feature:
>
> ADD ATTRIBUTE <attribute_name> TYPE <type_of_attribute> TO COLUMN
> <schema.table.column_name>;
...
> I have already been suggested to use VIEW or dynamic SQL but I am
> looking something different.
Can you explain why ?
One thing that comes to mind is complex user types.
Or columns of type table.
Karsten
--
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: Karsten.Hilbert@gmx.net
Subject: Re: Adding an extra boolean column to "information_schema.columns" or "pg_attribute"
In-Reply-To: <20171230192310.GF5732@hermes.hilbert.loc>
References: <CADep2PN8vide36zQe5X+kTh5BFKkCudKTOM+C_J2KUSDnN5L7Q@mail.gmail.com> <20171230192310.GF5732@hermes.hilbert.loc>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox