Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fEGyV-0001v9-P1 for pgsql-general@arkaria.postgresql.org; Thu, 03 May 2018 16:20:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fEGyU-00038R-Gn for pgsql-general@arkaria.postgresql.org; Thu, 03 May 2018 16:20:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fEGyU-00038H-5U for pgsql-general@lists.postgresql.org; Thu, 03 May 2018 16:20:54 +0000 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fEGyQ-00060r-UB for pgsql-general@postgresql.org; Thu, 03 May 2018 16:20:52 +0000 Received: by mail-qt0-x244.google.com with SMTP id h2-v6so23632847qtp.7 for ; Thu, 03 May 2018 09:20:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=Uj+moJVMUmF9vkvlg+6w8mpF8mRRiZL6WfdufsSkBTQ=; b=awjRwwCzJ3Ntcl87Wc4GsmkKiHIJqA99mWE/j+iUEVeQup8VDSIcuH1CVskexgfUFE 4WbGFI3DzQ2zVX2DR4MtcjeDO+PVUUc2CWhxYdhGfnROobd6/9ZwOChbKjMXAwmVAE0t ACZPRZmZmg8jaVcdMDBfEIoXr+l5T8xH48crCxOPwNgCigWjZ0t4BbVn1gBypjHE9LMN CA1vZQPubEHC3ttMCBjd7nDkiWD0hYUd5KT0IWZTOIpuBbiTva/TbtyN2jpf8e1YMzVs HVH0IXUwPFgpGk2qVYBDaQgiNsbQW7Sy3wPFe6CEMjO5EAYfKSXXIjfLeDz60SMLd2kA HNEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Uj+moJVMUmF9vkvlg+6w8mpF8mRRiZL6WfdufsSkBTQ=; b=Cr8W7y49yQF64dIqtYjWty7rPQvj70wUmx4iH9f23/RbV/Jzj5kVi8FL77IWAD8olp lfw9cMUrU6yJGAKs36wAmhab2hVXqcof16hBgYjWQ5IfpIqhIEHVJsaJxnRtYMgw/ARq QfC0CfQCVCoHPbDeNYeLwljGuwXfzqa8nMqGKKi80h4bB5Y4WGTz4IwsoN9i1V7vmh/J 8Jo8l4rUVNFSklZUqi2hT5TcPBsBeNgNv3USIPqss372cxZat74qWEH66q6aK8ZR9YFZ W207m3PFNdwMlD2qcYplzGEsSqW/jdNRc2fMj1c6h96CHbAtMBQs99Sa/c/sZBMkr47P 6OuQ== X-Gm-Message-State: ALQs6tAg/WKZLsgZLPY06JInu/aR+EpcxGW03awiCcJQX+dIakHpDSQA g9KfkWVDo9Yu03RpRotMohCI1w== X-Google-Smtp-Source: AB8JxZqFpuq/ci6HGRuGQyj9nKsbV8+u1tgQcuxEie+2ISjSWdS/7evErnxejSSf5obN3/HYfwGnzg== X-Received: by 2002:a0c:96cf:: with SMTP id b15-v6mr4244511qvd.124.1525364450008; Thu, 03 May 2018 09:20:50 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([179.56.29.253]) by smtp.gmail.com with ESMTPSA id p63sm10702215qkd.92.2018.05.03.09.20.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 May 2018 09:20:49 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 4F614A63; Thu, 3 May 2018 13:20:47 -0300 (-03) Date: Thu, 3 May 2018 13:20:47 -0300 From: Alvaro Herrera To: Adrian Klaver Cc: Justin Pryzby , pgsql-general@postgresql.org Subject: Re: relkind='p' has no pg_stat_user_tables Message-ID: <20180503162047.37k7km4dx62i6l4d@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3b48b9a9-8eec-398d-bf13-86ae8ce93237@aklaver.com> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Adrian Klaver wrote: > and from here: > > https://www.postgresql.org/docs/10/static/sql-createtable.html > > "A partitioned table is divided into sub-tables (called partitions), which > are created using separate CREATE TABLE commands. The partitioned table is > itself empty. A data row inserted into the table is routed to a partition > based on the value of columns or expressions in the partition key. ... " Yeah, but I think Justin has a valid question from the POV of the user: how can we figure out if we need to re-run analyze on a partitioned table, if the time of last analyze is not stored anywhere? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services