| From: | Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | "Bob Pawley" <rjpawley(at)shaw(dot)ca>, "Postgresql" <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Old/New |
| Date: | 2010-01-22 23:01:34 |
| Message-ID: | 201001221501.34603.adrian.klaver@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Friday 22 January 2010 2:05:02 pm Tom Lane wrote:
> "Bob Pawley" <rjpawley(at)shaw(dot)ca> writes:
> > Instead I get two identical rows inserted containing the fluid_id =
> > '3501' and 'Pump #1'.
>
> Seems like the only way that's possible with the INSERT .. VALUES
> formulation is if the trigger function gets executed twice. Maybe you
> accidentally created two instances of the trigger? psql's \d on the
> table should list the triggers for you.
>
> regards, tom lane
In addition to the above, is there more to the trigger function then what you
have shown so far?
--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bob Pawley | 2010-01-22 23:05:54 | Re: Old/New |
| Previous Message | Tom Lane | 2010-01-22 22:05:02 | Re: Old/New |