Re: [HACKERS] default value dosen't get applyed in this situation

2015-05-10 Thread Tom Lane
Aliouii Ali writes: > this a test case : This is not supposed to insert a default. Attach a default expression to the view column, if you want inserts on the view to have defaults. ALTER VIEW ... ALTER COLUMN ... SET DEFAULT is the way. (Note that in recent versions of PG, that view would be au

[HACKERS] default value dosen't get applyed in this situation

2015-05-10 Thread Aliouii Ali
this a test case : CREATE TABLE tab ( _id bigserial NOT NULL, _name text, CONSTRAINT tab_pkey PRIMARY KEY (_id) ); CREATE TABLE tab_s1 ( CONSTRAINT tab_s1_check CHECK (1 = 1) ) INHERITS (tab); CREATE OR REPLACE VIEW v_tab AS SELECT tab._id, tab._name FROM tab; CREATE OR REPLACE FU