LQO Advises From pg_stat_statements
LQO 0.7.0 no longer needs a log or a SQL file. lqo advise --stats reads the workload from pg_stat_statements, which most managed PostgreSQL servers already run. The view stores $1 where the values were, so LQO samples rows from the table each parameter is …