| От | Thomas Hallgren |
|---|---|
| Тема | Re: Preventing some SQL commands |
| Дата | |
| Msg-id | thhal-0v7l8Ag/kby4bBeArFG543UUTht1dUY@mailblocks.com обсуждение |
| Ответ на | Re: Preventing some SQL commands (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
Tom Lane wrote: >>... I would like to prevent the commands "begin [work or >>transaction]", "commit", and "rollback", completely >> >If you are executing through SPI then those operations are disallowed >already. > > Ah, yes I had forgotten that. One problem less to solve. >The main problem with this proposal is the erroneous assumption that >there can be only one command in a SPI plan. > > Ok, so let the function return a list of CmdType's terminated by the CMD_UNKNOWN (i assume that's an invalid value). The list should be pfree'd by the caller: CmdType* SPI_get_command_types(void* executionPlan) how about that? Regards, Thomas Hallgren
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера