| От | Adriaan Joubert |
|---|---|
| Тема | Help with SPI and oids |
| Дата | |
| Msg-id | 382F0ACD.81BE2A56@albourne.com обсуждение исходный текст |
| Список | pgsql-hackers |
Hi, I need to keep track of changes to a set of tables in a generic way. To do this, I want to keep track of oid's. I'm writing the code using the SPI interface, but I've hit the following problem: after I have inserted a tuple into a table from the C routine, I cannot figure out how to get hold of its oid. I had hope that there may be something in SPI_tuptable, but there isn't. SPI_processed is 1, and the row is inserted successfully. Surely there must be some way to get the oid of the row that was just inserted. I'd really appreciate any help on this one -- even digging aruond in the backend code hasn't helped up to now. Cheers! Adriaan
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера