Date vs Timestamp without timezone Partition Key

2020-05-24 Thread Cedric Leong
Just in case someone is interested enough to answer this. Does anyone know if the performance for a date column vs a timestamp column as a partition key is large? What i mean with large is that say you have 6 partitions with 10GB each. Would it be a 10 second+ difference? An explanation of how this

Re: Date vs Timestamp without timezone Partition Key

2020-05-24 Thread Tom Lane
Cedric Leong writes: > Just in case someone is interested enough to answer this. Does anyone know > if the performance for a date column vs a timestamp column as a partition > key is large? I doubt it's even measurable, at least on 64-bit machines. You're basically talking about 32-bit integer c

Re: Request to help on Query improvement suggestion.

2020-05-24 Thread Laurenz Albe
On Fri, 2020-05-22 at 16:15 +0530, devchef2020 d wrote: > PostgreSQL : 9.5.15 > Created Indexes on column parental_path: > = > > CREATE INDEX cable_pair_parental_path_idx > ON SCHEMA.TABLE_NAME > USING btree > (md5(parental_path) COLLATE pg_catalog."default")