[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

Re: [HACKERS] Tables cannot have INSTEAD OF triggers

2015-04-02 Thread Aliouii Ali
nd Cc: Tom Lane ; Robert Haas ; Aliouii Ali ; pgsql-hackers Sent: Wed, Apr 1, 2015 8:01 pm Subject: Re: [HACKERS] Tables cannot have INSTEAD OF triggers On 1 April 2015 at 18:37, Andres Freund wrote: > On 2015-04-01 13:29:33 -0400, Tom Lane wrote: >> As for partitioning, you c

[HACKERS] Tables cannot have INSTEAD OF triggers

2015-03-31 Thread Aliouii Ali
hi all, back in 2011(http://www.postgresql.org/message-id/1305138588.8811.3.ca...@vanquo.pezone.net), an question the same as this one was asked the anwser was : I think they're very useful on views, but I couldn't think of a use-case for having them on tables. ISTM that anything an INSTEAD