1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
3
Postgres does not have any out of the box solution to define TTL for a table. The recommended approach would be to convert the table as range partitioned table based of day/hour and schedule a purge script to drop the older partitions.. Here's a blog to convert a table into partitioned table : https://aws.amazon.com/blogs/database/partition-existing-tables-using-native-commands-in-amazon-rds-for-postgresql-and-amazon-aurora-postgresql/.
pg_partman extension can be used to create/maintain partitions as documented here : https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/PostgreSQL_Partitions.html
답변함 5달 전
관련 콘텐츠
- AWS 공식업데이트됨 8달 전
- AWS 공식업데이트됨 일 년 전