| От | Bruce Momjian |
|---|---|
| Тема | Re: [HACKERS] Adding a field to each tuple |
| Дата | |
| Msg-id | 199802261431.JAA13929@candle.pha.pa.us обсуждение исходный текст |
| Ответ на | Re: [HACKERS] Adding a field to each tuple ("Maurice Gittens" <mgittens@gits.nl>) |
| Список | pgsql-hackers |
> I certainly do appreciate any help I can get. > > > > This is a lot of overhead for places it is not needed. > > > > Any suggestions for solving the general given problem with less overhead?-:) Yes, this is a natural use for a trigger. Create the column in the base table, and have it stuff the value on insert. You have to make the trigger on each derived table, but you may be able to use the same trigger on all tables. This is how we are implementing time travel. -- Bruce Momjian | 830 Blythe Avenue maillist@candle.pha.pa.us | Drexel Hill, Pennsylvania 19026 + If your life is a hard drive, | (610) 353-9879(w) + Christ can be your backup. | (610) 853-3000(h)
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера