| От | Tom Lane |
|---|---|
| Тема | Re: Correct way to do deletes? |
| Дата | |
| Msg-id | 14616.1004392595@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Correct way to do deletes? (Bill Studenmund <wrstuden@netbsd.org>) |
| Список | pgsql-hackers |
Bill Studenmund <wrstuden@netbsd.org> writes:
> In one we SearchSysCache(), simple_heap_delete(), and then
> ReleaseSysCache(). In the other we SearchSysCacheCopy(),
> simple_heap_delete, and heap_freetuple().
> Are they two parallel ways, or is one better?
I don't think it matters much anymore. The copy approach takes a few
more cycles, though, to no good purpose since you have no need to modify
the tuple struct obtained from cache. (When updating a tuple, copying
the cache entry and scribbling directly on the copy is sometimes more
convenient than calling heap_modifytuple to build a new tuple.)
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера