Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 84CD813CDD71 for ; Sun, 29 Apr 2012 15:57:06 -0300 (ADT) Received: from mail-ob0-f174.google.com ([209.85.214.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SOZIu-0007j9-Ss for pgsql-docs@postgresql.org; Sun, 29 Apr 2012 18:57:05 +0000 Received: by obbta14 with SMTP id ta14so3240559obb.19 for ; Sun, 29 Apr 2012 11:56:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=yWzkgAyw1oz/1OZlKfjIpGexRTiqwM8cdtn3YmXd4fw=; b=MWqW04A2e7xVWL/RqitJB7JduPBeezaglMR7DH0eWrumh8IUZgLUR3+BNqi7h7I+V/ U3VV53rSY5OmkgWWgXyDBxQQINGsQOK062lkxFdymMQdaqKrocTPjOwrFmGvF2iN0gVi qTGcFI1vAhTINMmpOLR0yDmJmT0v6q3l65gQxRycVQwfklrGDGoFOpoGAj5i/aNsaiXx iTK09IWJuwm0tNgPNHNKEojiMIccHAwcalXq436XrvCBlXxRIaNe6Vsbj5bOc9jjyNTc VCE56hyo96kopfQPHJnQDdBypCKLGeCEpggZZrOFRt3ZPBOL4W6HNuVjovkWTj9l9sp4 AwAA== Received: by 10.60.22.234 with SMTP id h10mr588481oef.54.1335725812190; Sun, 29 Apr 2012 11:56:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.60.33.6 with HTTP; Sun, 29 Apr 2012 11:56:30 -0700 (PDT) In-Reply-To: <23280.1335711812@sss.pgh.pa.us> References: <4683.1335648276@sss.pgh.pa.us> <23280.1335711812@sss.pgh.pa.us> From: Josh Kupershmidt Date: Sun, 29 Apr 2012 11:56:30 -0700 Message-ID: Subject: Re: Documentation of underlying functions for statistics views To: Tom Lane Cc: pgsql-docs@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201204/64 X-Sequence-Number: 7318 On Sun, Apr 29, 2012 at 8:03 AM, Tom Lane wrote: > Josh Kupershmidt writes: >> I did find it marginally useful to see clarifications of milliseconds >> vs. microseconds =A0(e.g. "block_write_time" column). Yeah, you could >> figure out that based on the " / 1000" in the view description, but >> it'd be a bit less obvious. So maybe keep just those? > > There's an existing paragraph that explains that the underlying > functions take backend ID or table/index/function OID. =A0I was thinking > of expanding that to add the recommendation to look at the view > definitions. =A0We could also add a sentence there that says that for > timing columns, the underlying function reports integer microseconds > which are converted to milliseconds by the view. =A0I think that's better > than repeating the info for each such column. Yeah, that sounds fine. The paragraph I think you're talking about claims "These functions are listed in Table 27-13", but Table 27-13 only has a few functions (e.g. pg_stat_get_db_block_time_read() is missing). Maybe that paragraph could clarify that it's talking generally about all the views/functions on that page. Josh