I am using PostgreSQL 9.5, I have a TYPE that describes a collection of columns:
CREATE TYPE datastore.record AS
(recordid bigint,
...
tags text[]);
I have created many tables related to this type:
CREATE TABLE datastore.events
OF datastore.record;
Now I would like to add a column to the table that relies on this TYPE without updating the TYPE. I think this is not possible, so I wonder if there is a way to disconnect my table from this TYPE without losing data or copying the table to a temporary table?
source
share