Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEFhz-0001xO-V7 for pgsql-general@arkaria.postgresql.org; Wed, 10 Apr 2019 16:04:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hEFhy-0000bH-MJ for pgsql-general@arkaria.postgresql.org; Wed, 10 Apr 2019 16:04:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEFhy-0000bA-7k for pgsql-general@lists.postgresql.org; Wed, 10 Apr 2019 16:04:18 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEFhq-0008F4-Cy for pgsql-general@postgresql.org; Wed, 10 Apr 2019 16:04:17 +0000 Received: by mail-qt1-x844.google.com with SMTP id k14so3536120qtb.0 for ; Wed, 10 Apr 2019 09:04:09 -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=A3xPhIjNQtM1zocp3DwAJQYC0iR5bh/Rmrm1ED3DPLw=; b=jAyt9E5U6q8WWjOL1VawB4ISZuAcd/A2Mc52hB9PDSnqcWUtWThk5Ddpqk4LkGqB+g Z7vgegfpSuAjWDigm3kyGhfthFqKsorbyPEVeRT+7OVcYNuk49bWcIVzNVF1bqlmP0Un bRMH16ZlakzrWCaVMj4B55bEosqurOesRLq+kkjoQpqrPWKfCD1p5l0CHeyIcg7pMFCv EjhiTTayLbMXEYimH4lPP4xfFlMh0wQeFbcWc36P9dSAj5KDZk3omCabYZCVD08Afo7t J7AOG8bjyZcU7GbTZEjIXlZnrtu34uxZt9QzH0wKeXJ+29nGZZ9xP/OMugGmmun/ddt4 rSbA== 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=A3xPhIjNQtM1zocp3DwAJQYC0iR5bh/Rmrm1ED3DPLw=; b=mJ63g53/WK3wzlvmBKi+DHoBKRDWv0LsHOtqO/Tm3G1n7exHJr6coeo8p4IdsncEZs HdhN6HymyABWevLwvOcmMpqhGYKVXdJCuSd0uaIaZeH89jAnUgQnqBjwGRoQ06NQkus5 GuuuA1UryqiPVNkR2ZJeFp6WML5vtCZjVYfddVQp2ncQj6pe/zRkNoyw0cl+uJKUtblq Pbblek2X69GtD8OKcLOLap9+b0duwe7o/9H1CyIXQHAbuBr/FObOrOd6hIEWkeZocN4X LcyRcA125ScyEkT4KyK1SV1Njns+xdszqYwD4DPrkaXESPaspmS27RzeOvqg1Ern6yuy o0iQ== X-Gm-Message-State: APjAAAWZbc/4wEXyxv0SMK3g0yKxajXYrMW8ED79+/dP4S0e3IxhnqLS azF3Ce73YBPJOjkRr+Motf1q8w== X-Google-Smtp-Source: APXvYqznScTr3rNykfwvEdznpIvSbR4QmG0IIxFWYtf14S+TQeN8fzHGEVEMkoycwYvr3kKCp1sw3g== X-Received: by 2002:ac8:3739:: with SMTP id o54mr36927645qtb.291.1554912248413; Wed, 10 Apr 2019 09:04:08 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id g5sm19686335qke.71.2019.04.10.09.04.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Apr 2019 09:04:07 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 228561217E7; Wed, 10 Apr 2019 12:04:06 -0400 (-04) Date: Wed, 10 Apr 2019 12:04:06 -0400 From: Alvaro Herrera To: David Rowley Cc: Thomas Kellerer , pgsql-general Subject: Re: pg_indexes doesn't show indexes for partitioned tables - bug or intended? Message-ID: <20190410160406.GA3406@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Apr-11, David Rowley wrote: > On Thu, 11 Apr 2019 at 00:39, Thomas Kellerer wrote: > > > > In Postgres 11.2, indexes defined on partitioned tables do not show up in pg_indexes (the actual indexes for the partitions however do show up). > > > Is leaving out the indexes defined on the partitioned table intended or a bug? > > Overlooked for PG11. You'll see them in PG12 per [1]. It's not really > possible to backpatch a fix for that since these views are created > during initdb. (You can, of course, adjust the view definition yourself.) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services