2 ms·
An interesting postgres oddity I ran into a few years ago that isn't about counting but is in a similar arena is how under very specific circumstances, "SELECT
by znep 7y ago
An interesting postgres oddity I ran into a few years ago that isn't about counting but is in a similar arena is how under very specific circumstances, "SELECT *" is significantly faster than "SELECT one_column" despite the conventional and normally well advised advice that you should only select the columns you need.
See https://www.postgresql.org/message-id/CAN1FPGN1ynBj3m1DMszc9MEYVj41S96OMy8-Q1cgKMGxv482SA%40mail.gmail.com https://www.postgresql.org/message-id/CAN1FPGN1ynBj3m1DMszc9... and Tom Lane's followup for details.