Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

well there is truncate for that. (not mvcc safe)


The table needed to never be visible as empty, so truncate wasn't a short term option.


I solved this by using partitions (at the time it was done through inheritance, where you could make one table made out of several smaller ones), and just dropping a table with unneeded data.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: