You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the monthly partitions are named:
partitions will be named [table_name]_[year]_[3-letter month name].
Which doesn't make sense for use, we would prefer to have the month number instead.
Maybe a toggle to specify which format you want to use might make sense?
Activity
ckrybus commentedon Jan 27, 2023
I'm also interested in this. Right now I see no "easy" way to customize the naming.
I needed to change the daily partitioning naming from
"%Y_%b_%d"to"%Y_%m_%d".Currently I'm using this as a "workaround" (basically just copy and paste and make the necessary change):
settings.py
myapp/core/partitioning.py
myapp/core/partitioning_custom_current_time_strategy.py
Photonios commentedon Feb 3, 2023
I am happy to accept a PR that adds parameters to
PostgresCurrentTimePartitioningStrategyandPostgresTimePartitionto customize the format.Photonios commentedon Mar 25, 2023
Closed by #200. Thanks @ckrybus!