I need to truncate a partition in Greenplum based on a condition. What would be the easiest possible way to achieve that?
Example:
ALTER TABLE PACKAGE_INFO TRUNCATE PARTITION FOR ('BOX');
I need to truncate the partition with value - BOX in the table PACKAGE_INFO only for a particular condition. Say only for few PACKAGE_IDs.
Some thing like, truncate the partition containing PACKAGE_TYPE data for PACKAGE_ID - 100,200,300. I am not inclined towards DELETE because if I use delete, I won't be able to compress the table.
Thanks.