Just create a partial index on id column where end_date = infinity (or null if you really prefer that pattern) and the system can quickly find the rows that are still most current revision. How many rows do you have in this table? Or foresee ever having? What took you down the road of partitioning the table? Theory only, or solving a real life optimization problem?
- pg12 - partition by column that might have null values Mariel Cherkassky
- Re: pg12 - partition by column that might have null... Laurenz Albe
- Re: pg12 - partition by column that might have ... Mariel Cherkassky
- RE: pg12 - partition by column that might h... Mike Sofen
- Re: pg12 - partition by column that mig... Mariel Cherkassky
- RE: pg12 - partition by column tha... Mike Sofen
- Re: pg12 - partition by column... Mariel Cherkassky
- Re: pg12 - partition by co... Michael Lewis