hard20 pts · first answer countsquery-tuningpostgresql
Prepared statement slows down later
A prepared query on a heavily skewed column is fast for the first five executions and then suddenly slow for some parameter values. What is the likely cause in PostgreSQL?