When I run the EXPLAIN ANALYZE command on a given query, I'm having a difficult time interpreting the outputted time value. For example (actual time=8163.890..8163.893). Do the internal decimals represent repeating characters?? Sorry, this may be a noobish question, but I want to make sure I'm interpreting the results correctly.
-> GroupAggregate (cost=2928781.21..2929243.02 rows=1 width=27712) (actual time=8163.890..8163.893 rows=1 loops=1)
(actual time=0.002..0.002 rows=0 loops=119878)? I suppose the average per loop has rounded to zero rows which is unhelpful, but do these times really mean the execution cost is so trivial that it entirely consists of startup cost? – Davos Oct 24 '19 at 05:08actual timecost as "time until the first row is returned ... time until the last row is returned". When you have 0 or 1 output rows, both times should be nearly equal. For queries where every row is pretty expensive, calling the first as "startup cost" might make sense but you should interpret it as time until first row of result and it will make much more sense. – Mikko Rantalainen Mar 18 '24 at 09:55