I frequently need to analyze the last query in psql:
select * from table where id = 1;
explain analyze select * from table where id = 1;
It would be nice to be able to do this:
explain analyze $LAST
(or can I do something like that already?)
I'm not using psql interactively, I pipe files into psql (if it matters).
Joe