[GENERAL] Composite type, DEFAULT, NOT NULL, REFERENCES

2011-10-19 Thread erhaminus
Hi, Is a way to define DEFAULT, NOT NULL and REFERENCES for members of composite type? For example: -- type CREATE TYPE bibl.bibliography AS ( edition TEXT, publisher_id BIGINT ); -- table def create table bibl.monograph ( id BIGSERIAL PRIMARY

Re: [GENERAL] Composite type, DEFAULT, NOT NULL, REFERENCES

2011-10-19 Thread David Johnston
-Original Message- From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general-ow...@postgresql.org] On Behalf Of erhaminus Sent: Wednesday, October 19, 2011 10:33 AM To: pgsql-general@postgresql.org Subject: [GENERAL] Composite type, DEFAULT, NOT NULL, REFERENCES Hi, Is a way

Re: [GENERAL] Composite type, DEFAULT, NOT NULL, REFERENCES

2011-10-19 Thread Merlin Moncure
On Wed, Oct 19, 2011 at 9:32 AM, erhaminus erhami...@o2.pl wrote: Hi, Is a way to define DEFAULT, NOT NULL and REFERENCES for members of composite type? For example: -- type CREATE TYPE bibl.bibliography AS (        edition TEXT,        publisher_id BIGINT ); -- table def create