Difference Between Explain And Explain Analyze
> explain insert into books (title, author) values ('Fledgling', 'Octavia Butler');
QUERY PLAN
----------------------------------------------------
Insert on books (cost=0.00..0.01 rows=1 width=76)
-> Result (cost=0.00..0.01 rows=1 width=76)
> select count(*) from books;
count
-------
0> explain analyze insert into books (title, author) values ('Fledgling', 'Octavia Butler');
QUERY PLAN
----------------------------------------------------------------------------------------------
Insert on books (cost=0.00..0.01 rows=1 width=76) (actual time=0.285..0.285 rows=0 loops=1)
-> Result (cost=0.00..0.01 rows=1 width=76) (actual time=0.012..0.012 rows=1 loops=1)
Planning time: 0.021 ms
Execution time: 0.309 ms
> select count(*) from books;
count
-------
1Last updated