postgresql - Is it possible to truncate the pg_largeobject table in postgres? -


i discard contents of pg_largeobject table , reclaim disk space. when try issuing command:

truncate pg_largeobject 

i response:

error:  permission denied: "pg_largeobject" system catalog 

this though issuing command user postgres (a superuser). there insufficient disk space vacuum full while table contains lot of rows. i've tried deleting rows in preparation vacuum full, still going after whole day, , ended being interrupted. i'd prefer truncate if @ possible.

is truncation of table possible? contains around 1 tb of images no longer want. i've removed references table other tables (and deleted rows pg_largeobject_metadata).

turning on allow_system_table_mods answer. truncate took few minutes. nick barnes suggestion , old article confirmed approach.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -