-1

Can someone guide to automate LIST partitioning to a new table in rds postgres v12.10. At runtime I can get different values of the partition key. How can U automate this

1 Answers1

0

I guess that you want partitions to be created as you insert data. You cannot do that in PostgreSQL. Perhaps an ugly workaround like in this article can help: Have a trigger that creates the target table if it does not yet exist and notifies a special worker process that attaches the newly created table as a partition.

Laurenz Albe
  • 209,280
  • 17
  • 206
  • 263