pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard E Nairn <ren@spans.gscc.nrcan.gc.ca>
To: pgsql-sql@hub.org
Subject: Trigger vs rule
Date: Wed, 16 Aug 2000 10:16:55 -0600
Message-ID: <20000816101655.C30950@spans.gscc.nrcan.gc.ca> (raw)

I am in the process of creating a database to keep of my car's fuel costs
and mileage. I am having a little bit of trouble deciding if I need to use
a rule to do what I want or a trigger. I have created a SQL function that
will update the mileage field, but when I try and create a trigger for it,
it says it needs to return OPAQUE, but if i recreate my SQL function it
won't accept OPAQUE as a return type. 

Any Ideas?

-- 
Richard Nairn
Nairn Consulting
** Email ren@spans.gscc.nrcan.gc.ca   **
**	 nairnr@cadvision.com         **
**       nconsulting@cadvision.com    **



Message-ID: <20000816101655.C30950@spans.gscc.nrcan.gc.ca>
Permalink:  ../20000816101655.C30950@spans.gscc.nrcan.gc.ca/
Also on:    postgresql.org/message-id/20000816101655.C30950@spans.gscc.nrcan.gc.ca

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: ren@spans.gscc.nrcan.gc.ca, pgsql-sql@hub.org
  Subject: Re: Trigger vs rule
  In-Reply-To: <20000816101655.C30950@spans.gscc.nrcan.gc.ca>
  References: <20000816101655.C30950@spans.gscc.nrcan.gc.ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox