If I create index for nullable timestamp column due_date with DESC NULLS LAST, will then index also work for ASC NULLS LAST query?
Maybe it's will be just less performant? Or I need to create second index?
In postgres docs we can see that backward direction scan nulls became first:
An index stored in ascending order with nulls first can satisfy either ORDER BY x ASC NULLS FIRST or ORDER BY x DESC NULLS LAST depending on which direction it is scanned in.