0

I'm using Openerp 7.0 and there are so many file that has been uploaded to that database I want to delete every file that has been uploaded. The Openerp is storing the data in a table called ir_attachment and a column db_datas that has type bytea.

So how do i delete every value from db_datas?

2
  • Does this answer your question? PostgreSQL delete all content Commented Dec 24, 2019 at 11:15
  • Why don't you simply set the column to null? Commented Dec 24, 2019 at 11:58

1 Answer 1

1

I actually need to vacuum after i set everything to null

update ir_attachment set db_datas = NULL;

VACUUM (VERBOSE, FULL) ir_attachment;

Sign up to request clarification or add additional context in comments.

1 Comment

Does above command affect other rows and fields in that table?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.