| От | Bruno Wolff III |
|---|---|
| Тема | Re: Select for update |
| Дата | |
| Msg-id | 20050729065805.GA21479@wolff.to обсуждение |
| Ответ на | Re: Select for update (Havasvölgyi Ottó <h.otto@freemail.hu>) |
| Список | pgsql-general |
On Fri, Jul 29, 2005 at 00:05:46 +0200, Havasvölgyi Ottó <h.otto@freemail.hu> wrote: > > This function deletes a row, and updates the pid field where pid is geater > than the deleted pid value, so that the gap caused by the deletion is not > present any more. This isn't directly related to your problem, but why are you doing this? This is a pretty inefficient thing to be doing unless there is a business rule that there can't be gaps in the pid values. If you just want to number rows in reports, you should do that in your reporting application, not by continuously renumbering your records.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера