| От | Tom Lane |
|---|---|
| Тема | Re: currval sequence memory storage? |
| Дата | |
| Msg-id | 15273.1027112246@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | currval sequence memory storage? (chris.gamble@CPBINC.com) |
| Список | pgsql-general |
chris.gamble@CPBINC.com writes:
> My questions is, when does the memory
> storage used for this currval get released and what triggers its
> release?
It's not released until your session exits.
> If
> it is never released, does that cause the process to consume excessive
> memory after several inserts across multiple tables?
Since the storage involved is just a few bytes for each distinct
sequence object that you've nextval'd in the current session, I doubt
that you need to worry. Certainly doing multiple inserts into a single
table isn't going to bloat your memory consumption, because you're
touching only one sequence.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера