Re: How to check constraints before call of simple_heap_insert()? - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: How to check constraints before call of simple_heap_insert()?
Date
Msg-id 20061214154430.GD30039@alvh.no-ip.org
Whole thread Raw
In response to How to check constraints before call of simple_heap_insert()?  ("Vanyel" <mgierw@wp.pl>)
Responses Re: How to check constraints before call of simple_heap_insert()?
List 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.


pgsql-general by date:

Previous
From: wheel
Date:
Subject: Subcribing to this list, what's the secret?
Next
From: Tom Lane
Date:
Subject: Re: 8.2 server core dump