Skip to content

I have a timestamp without timezone data type column in my table and pg_partman fails to create partition #699

Answered by keithf4
Rammurthy5 asked this question in Q&A
Discussion options

You must be logged in to vote

Please see the documentation. The p_type column is for the partitioning type (range, list), not the data type of the control column.

https://github.com/pgpartman/pg_partman/blob/master/doc/pg_partman.md#create_parent

Also, I would highly recommend not using timestamp without timezone. It often does not work as expected and unless every single system that will ever possibly interact with the database are all on the same timezone for all time, you will not get the time you're likely expecting back.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by keithf4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants