| От | Greg Stark |
|---|---|
| Тема | Re: About dropped notifications |
| Дата | |
| Msg-id | 87ll2j4ls1.fsf@stark.xeocode.com обсуждение исходный текст |
| Ответ на | About dropped notifications (CSN <cool_screen_name90001@yahoo.com>) |
| Список | pgsql-general |
CSN <cool_screen_name90001@yahoo.com> writes: > I'm considering setting up a script that listens for > notifications for a table and if a row is deleted the > script will delete that row's corresponding files. One way to deal with this would be to have a boolean flag in the table like "deleted". Update that flag to true, and have a partial index "where deleted". Then your daemon can quickly query "select file_name where deleted", process the files and actually complete the deletion. All your other queries need to test "where not deleted" or go through a view with a clause like that. -- greg
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера