Re: [GENERAL] DDL with Reference on them.

2009-09-21 Thread Alvaro Herrera
Michael Gould wrote: > As you can see there are a few columns which reference back to another > table. What I need to know is how does Postgres work with these columns. > Can I insert or update a row if those columns are null or are they required > to have a non-null value in order for the row to

[GENERAL] DDL with Reference on them.

2009-09-21 Thread Michael Gould
I have a question about using Reference. I have several tables that are defined such as below CREATE TABLE iss.accessor ( loaddtlid UUID NOT NULL , seqno SMALLINT NOT NULL , billable VARCHAR(1) DEFAULT 'N' CHECK(billable IN ('N','Y')) NOT NULL , payind VARCHAR(1) DEFAULT 'P' CHECK(payind