Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YajaA-0005b3-TF for pgsql-admin@arkaria.postgresql.org; Wed, 25 Mar 2015 11:34:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YajaA-00053g-B7 for pgsql-admin@arkaria.postgresql.org; Wed, 25 Mar 2015 11:34:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yaja9-00051C-5V for pgsql-admin@postgresql.org; Wed, 25 Mar 2015 11:34:45 +0000 Received: from eu1sys200aog115.obsmtp.com ([207.126.144.139]) by makus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yaja5-0002FY-HF for pgsql-admin@postgresql.org; Wed, 25 Mar 2015 11:34:43 +0000 Received: from mail-qg0-f41.google.com ([209.85.192.41]) (using TLSv1) by eu1sys200aob115.postini.com ([207.126.147.11]) with SMTP ID DSNKVRKdTY+wWWJ+2DsW6mlrOl9RQreah5Xw@postini.com; Wed, 25 Mar 2015 11:34:41 UTC Received: by qgep97 with SMTP id p97so35812538qge.1 for ; Wed, 25 Mar 2015 04:34:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:content-type :content-transfer-encoding; bh=Fszk4QeDoR9LkIUUGSPZzelbzgXKfcaDOiKmC/z3VcI=; b=Y18s8tLc3hO/eZWIHvDJyfWRcv3upXRI61ZRunjxAVpdiqYTgeD8OegeBJvMFX5XtH MvXix3kD08sQKPwo0jeKS8i416uqZSPcVObWvvi84nLjAAaZCOBWSTl2HDV/wtMvlL6O JApqR7nhmFGkT8HaB/vQbhNULP7e4+nMgcf2F+6M26pvHU876rsr6QoQWofKEh3tJINA nVkglEEkKEn18k+v8PLv/3f3p1dap1MgdBmImJClc44BGWLd4dTD+J8NDhKILQYxYW+5 00XhV1dYU4YTgEma0pRlnPPdSeKQ/gHp0n4U9tzMUOWijxtWC5NuCSCjSQPxP3Ffr4Zw NPNQ== X-Gm-Message-State: ALoCoQmxJZIiVVkUvvDomIROtjhRcODBF5miTIQeaWqI9hru5IosyBTM7wThakq2gWuXuX4+cr1UMb0eC+mfbEzcm9wPKMTl99w3wS564wa5j8FPLfHx0XG2OETu1U3JP3HJuBjmAqS5Dt4bT2wHowKkTmLNqiQoOw== X-Received: by 10.140.236.151 with SMTP id h145mr11763442qhc.9.1427283276584; Wed, 25 Mar 2015 04:34:36 -0700 (PDT) X-Received: by 10.140.236.151 with SMTP id h145mr11763425qhc.9.1427283276453; Wed, 25 Mar 2015 04:34:36 -0700 (PDT) From: Khangelani Gama References: <80b319b3f6696a7f1672a4640f55e803@mail.gmail.com> In-Reply-To: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 thread-index: AQHIZmirUWy6fLbq5d+yfQlWk3kQOwJAd42DAhAg5NQCBWVuLp0KYnYA Date: Wed, 25 Mar 2015 13:34:35 +0200 Message-ID: Subject: Re: Postgres 9 : - How to interpret the EXPLAIN query results To: Thomas Kellerer , pgsql-admin@postgresql.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Thomas Kellerer Sent: 25 March 2015 01:05 PM To: pgsql-admin@postgresql.org Subject: Re: [ADMIN] Postgres 9 : - How to interpret the EXPLAIN query results Khangelani Gama schrieb am 25.03.2015 um 11:28: > Thanks to all, but if this total cost is the total time it will take to > retrieve the output then is it in minutes or milliseconds? > If it=E2=80=99s in milliseconds does it mean that it take about 213 hrs f= or a > total of 768375132.77 No. The cost is not the total time. Quote from the manual measured in cost units that are arbitrary, but conventionally mean disk page fetches In general you can _assume_ that a query with a higher cost is likely to run longer than an equivalent query with lower costs. If you want the runtime of each step you need to use "explain (analyze)" - again this is documented in the manual. Thomas Many Thanks Thomas -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin CONFIDENTIALITY NOTICE The contents of and attachments to this e-mail are intended for the address= ee only, and may contain the confidential information of Argility (Proprietary) Limited and/or its subsidiaries. Any = review, use or dissemination thereof by anyone other than the intended addressee is prohibited.If you are not the intended= addressee please notify the writer immediately and destroy the e-mail. Argility (Proprietary) Limited and its subsidiaries= distance themselves from and accept no liability for unauthorised use of their e-mail facilities or e-mails sent other than = strictly for business purposes. =0D --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin