Re: Trigger function which inserts into table; values from lookup

From: novnov <novnovice(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Trigger function which inserts into table; values from lookup
Date: 2007-05-21 04:26:11
Message-ID: 10713002.post@talk.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


OK, but, how do I set this up to do what I need? I want an insert that would
create a dupe key to be rolled back, and inserts that would not create dupe
keys to be committed.

Tom Lane-2 wrote:
>
> novnov <novnovice(at)gmail(dot)com> writes:
>> Any clue re my question?
>
> You've placed the INSERT inside the BEGIN/EXCEPTION block, ergo it's
> part of the work to be rolled back on exception.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>
>

--
View this message in context: http://www.nabble.com/Trigger-function-which-inserts-into-table--values-from-lookup-tf3784731.html#a10713002
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message georgy.slavov 2007-05-21 06:08:12 Re: pg_ctl: could not start service "pgsql-8.2": error code 1063
Previous Message Conor McTernan 2007-05-21 04:17:09 User permissions/Data separation.