execution time and running time difference

From: jian xu <jamesxu(at)outlook(dot)com>
To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: execution time and running time difference
Date: 2023-07-28 14:58:30
Message-ID: BL0PR02MB4561E1E654EC2EF58565ECCDA106A@BL0PR02MB4561.namprd02.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hello,
I enabled the \timing in psql, and run a query with explain analyze,
In the output, the execution time(from analyze) is 28 seconds, the query only returns 14 rows, however the Time(from timing) is more than a minute. Could someone help me explain the difference between execution time and running time? And how did it happen, any possible cause? Thanks
James

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jeff Janes 2023-07-28 17:38:57 Re: execution time and running time difference
Previous Message Jefferson Lourthusamy 2023-07-26 07:24:00 pgAgent installation issue