Re: [GENERAL] Vacuum analyze in 7.1.1

Поиск
Список
Период
Сортировка
Искать

Re: [GENERAL] Vacuum analyze in 7.1.1

От:
"David Wall" <d.wall@computer.org>
Дата:
The new vacuum comments are much more clear.  Bravo.

As for the large objects, I'll have to see what happens when I delete a row
that contains a large object.  Sounds like they are not being deleted for me
as I had thought.  That's too bad since I know it must be a common problem
for those who use them.  I use the JDBC library, so I don't really even
create the large objects except through standard JDBC calls like
PreparedStatement.setBytes().  I'll have to see if JDBC does an unlink
anywhere.

David

Re: [GENERAL] Vacuum analyze in 7.1.1

От:
"David Wall" <dwall@Yozons.com>
Дата:
> I'll have to see if JDBC does an unlink anywhere.

Whoa!  Looks like JDBC (as makes sense if you think about the libraries)
doesn't unlink those large objects.  There is a call in the
postgresql-specific for doing the lo_unlink, but it requires an OID, and
when deleting a row, most of the time I only know the primary key, not the
OIDs inside.  So, I guess I'll have to run vacuumlo from contrib before I do
the regular vacuum.

Does anybody know if vacuumlo is truly safe to use?  I just ran it on my
test system and it removed a bunch of orphans, but I just hope they were
really orphans!

David


FAQ