| От | Maciej Fuchs |
|---|---|
| Тема | Problem with plpgsql TRIGGER |
| Дата | |
| Msg-id | b08ugu$8qg$3@news.tpi.pl обсуждение исходный текст |
| Ответы |
Re: Problem with plpgsql TRIGGER
|
| Список | pgsql-general |
Hi there ! I have one strange problem with pgsql and pl/pgsql in deleteing data by trigger. The data is uploaded from mssql via DTS to the first table. On that event the trigger is called and parting data into two cascade referencing tables. Everything is OK till I am going to update data. the trigger should do sth like this: DELETE * from table1 -- in that case all data from table2 are deleted too. INSERT into table1 INSERT into table2 but... it wont go :/ If there is any record (id = NEW.id) postgres is calling about refereces ... well it should be deleted in the first step of trigger. Does any one of you had sth. simmilar, please let me know. Matwiej
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера