Re: Old/New

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Bob Pawley" <rjpawley(at)shaw(dot)ca>
Cc: "Adrian Klaver" <adrian(dot)klaver(at)gmail(dot)com>, "Postgresql" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Old/New
Date: 2010-01-22 22:05:02
Message-ID: 21062.1264197902@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"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 response to

Responses

  • Re: Old/New at 2010-01-22 23:01:34 from Adrian Klaver

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2010-01-22 23:01:34 Re: Old/New
Previous Message Bob Pawley 2010-01-22 21:47:37 Re: Old/New