Re: Question about DB VACUUM

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Question about DB VACUUM
Дата
Msg-id 20681.1065500659@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Question about DB VACUUM  ("Chris White (cjwhite)" <cjwhite@cisco.com>)
Ответы Re: Question about DB VACUUM
Список pgsql-admin
"Chris White \(cjwhite\)" <cjwhite@cisco.com> writes:
> Okay now I understand what is going on. I have a second thread which is
> being used to read these objects out of the database to present to the
> user, and because large objects can only be accessed in a transaction
> mode I have not closed the transaction on this thread. Should I do a
> commit or rollback to terminate the transaction, once I have closed the
> large object, even though I have not done any modifications to the large
> objects?

Yes, if you need to reclaim the space from recently-deleted large
objects.  Under ordinary scenarios I'd not think that you have to be
real tense about this.  However, if your reader thread was in the habit
of holding open the same transaction for hours or days, that would be
a Bad Thing ...

            regards, tom lane

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Chris White (cjwhite)"
Дата:
Сообщение: Re: Question about DB VACUUM
Следующее
От: "Ganesan Kanavathy"
Дата:
Сообщение: Checking Postgres Database