> I.e. "On an insert to news, if new.publish is not null, insert the new > post's id into news_unpublished. How about: CREATE RULE newsrule AS ON INSERT TO news DO INSERT INTO news_unpublished SELECT NEW.id WHERE NEW.publishtime IS NOT NULL -itai
- [SQL] Aggregates and Primary Keys Itai Zukerman
- [SQL] Conditional rule? André Nęss
- Re: [SQL] Conditional rule? Itai Zukerman
- Re: [SQL] Conditional rule? Tom Lane
- Re: [SQL] Conditional rule? André Nęss
- Re: [SQL] Conditional rule? André Nęss
- Re: [SQL] Conditional rule? Jan Wieck
- Re: [SQL] Conditional rule? André Nęss
- Re: [SQL] Conditional rule? Itai Zukerman
- Re: [SQL] Conditional rule? Robert B. Easter
- Re: [SQL] Conditional rule? Robert B. Easter
- Re: [SQL] Conditional rule? André Nęss
- Re: [SQL] Conditional rule? Tom Lane