Re: How to check constraints before call of simple_heap_insert()?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Vanyel <mgierw(at)wp(dot)pl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to check constraints before call of simple_heap_insert()?
Date: 2006-12-14 15:44:30
Message-ID: 20061214154430.GD30039@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Vanyel wrote:
> Hi all.
> I'm writting some trigger i C, and I use simple_heap_insert() function
> to insert HeapTuple to a table. But unfortunatelly that function does
> not check constraints before inserting values to the table. Does anyone
> know there is some function that checks constraints while inserting
> HeapTuple structure?

Use SPI_exec() instead.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-12-14 15:51:43 Re: 8.2 server core dump
Previous Message Marc Evans 2006-12-14 15:17:49 Re: creating functions with variable argument lists