Re: Having a problem with my stored procedure

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Laura McCord <mccordl(at)southwestern(dot)edu>
Cc: Ted Byers <r(dot)ted(dot)byers(at)rogers(dot)com>, William Leite Araújo <william(dot)bh(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Having a problem with my stored procedure
Date: 2007-02-13 19:23:58
Message-ID: 3896.1171394638@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Laura McCord <mccordl(at)southwestern(dot)edu> writes:
> I tried doing two different triggers as you suggested but I kept getting
> an error stating:

> psql:archive_news_articles.sql:75: ERROR: trigger "archive_articles"
> for relation "news_content" already exists
> psql:archive_news_articles.sql:80: ERROR: trigger "update_archives" for
> relation "news_content" already exists

> So, I thought perhaps it couldn't be done.

You need to pick different names for the triggers ... or if you're
trying to replace an existing trigger definition, you need to DROP it first.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Laura McCord 2007-02-13 19:35:36 Re: Having a problem with my stored procedure
Previous Message Magnus Hagander 2007-02-13 19:14:59 Re: PostgreSQL and OpenLdap