Need help with simple update / insert trigger - Mailing list pgsql-general

From Matthew Wilson
Subject Need help with simple update / insert trigger
Date
Msg-id slrngbdg7q.iki.matt@sprout.tplus1.com
Whole thread Raw
List pgsql-general
I have table sort of like this:

create table snoz (
    a bool default false,
    b bool default false,
    c bool default false
);

I want to set up a trigger so that any time a row is inserted or
updated, the value of c is set to true if a and/or b is true.

How can I do this?

Thanks!

Matt

pgsql-general by date:

Previous
From: btober@ct.metrocast.net
Date:
Subject: pg_dumpall problem when roles have default schemas
Next
From: "Jaime Casanova"
Date:
Subject: Re: Vaccuum best practice: cronjob or autovaccuum?