Re: [GENERAL] Trigger or Rule?

From: "K(dot)T(dot)" <death(at)solaris1(dot)mysolution(dot)com>
To: "Andy Lewis" <alewis(at)themecca(dot)net>, "pgsql general mailing list" <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: [GENERAL] Trigger or Rule?
Date: 1999-04-28 16:10:18
Message-ID: 002e01be9191$9d66d480$3e9264d1@p2-400-death
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Why wouldn't you just use a unique index or perhaps the primary key?

-----Original Message-----
From: Andy Lewis <alewis(at)themecca(dot)net>
To: pgsql general mailing list <pgsql-general(at)postgreSQL(dot)org>
Date: Monday, April 26, 1999 7:52 AM
Subject: [GENERAL] Trigger or Rule?

>I have a table that among other things has a name, address, city, state
>fields. When I insert into, I want to be able to make sure that there is
>no duplicate records or that a row is inserted that is already in the DB.
>
>Question number one is: Should I use a trigger or a rule?
>
>And request number two is perhaps a sample that could get me started.
>
>I've read thru the Documentation and Man pages and tried creating a rule
>but, had no luck.
>
>Thanks in advance.
>
>Andy
>
>
>

Browse pgsql-general by date

  From Date Subject
Next Message Karl DeBisschop 1999-04-28 16:21:54 Re: [GENERAL] Search engine with PostgreSQL
Previous Message Kevin Lo 1999-04-28 16:05:18 Re: [GENERAL] DBI driver for Postgres?