Re: Deleting BLOBs
От | Neanderthelle Jones |
---|---|
Тема | Re: Deleting BLOBs |
Дата | |
Msg-id | Pine.LNX.4.64.1208130955250.30414@calypso.view.net.au обсуждение исходный текст |
Ответ на | Re: Deleting BLOBs (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Deleting BLOBs
|
Список | pgsql-general |
On Sun, 12 Aug 2012, Tom Lane wrote: > Neanderthelle Jones <elle@view.net.au> writes: > > One attempt. Is the error mine or PostgreSQL's? > > > $ for i in $(psql -q -t -U elle -d my_db \ > > -c "SELECT raster FROM images where raster > 0"); do > > echo $i > > psql -q -U elle -d my_db -c "SELECT lo_unlink($i)" > > done > > > 21234 > > ERROR: large object 21234 does not exist > > 21235 > > ERROR: large object 21235 does not exist > > [etc] > > That script looks reasonable enough, if perhaps not too fast. Are you > sure the table actually does reference live large objects? Thanks, Tom. No, because I fumbled a bit, and didn't vacuum. They may have gone, but I don't understand why the oids get echoed in that case. What does "live" mean? Elle
В списке pgsql-general по дате отправления: