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

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: How to check constraints before call of simple_heap_insert()?
Дата
Msg-id 20061214154430.GD30039@alvh.no-ip.org
обсуждение исходный текст
Ответ на How to check constraints before call of simple_heap_insert()?  ("Vanyel" <mgierw@wp.pl>)
Ответы Re: How to check constraints before call of simple_heap_insert()?  ("Vanyel" <mgierw@wp.pl>)
Список 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 по дате отправления:

Предыдущее
От: wheel
Дата:
Сообщение: Subcribing to this list, what's the secret?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 8.2 server core dump