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 1h7Ap5-0003Oh-Gf for pgsql-committers@arkaria.postgresql.org; Fri, 22 Mar 2019 03:26:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h7Ap3-0003rY-Ra for pgsql-committers@arkaria.postgresql.org; Fri, 22 Mar 2019 03:26:21 +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 1h7Ap3-0003rR-Lk for pgsql-committers@lists.postgresql.org; Fri, 22 Mar 2019 03:26:21 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7Aoz-0007zb-Tc for pgsql-committers@lists.postgresql.org; Fri, 22 Mar 2019 03:26:21 +0000 Received: by mail-qk1-x743.google.com with SMTP id c1so445905qkk.4 for ; Thu, 21 Mar 2019 20:26:17 -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=kHFJrgUpZw7Y+xjcJPH4RGtbltsFQQxhhVhSKX9VtfE=; b=mWYDt6ix1soq3SxkJbR3dIp8ClloYhPurO/aXjeODd/LBqIMuHViVM4V+/5GCwjKNZ LWzCXv6qHRlEWcp6DwgHC1L/d+kZr5di2pVILLUeaGbNKD0RAoCmVbwU+iA8SMm3Wj6J Ma+pcWE2y5qFDx54t7ZvKGrUy7AlBvymojZfyP2SlERB87aBGvbdDPEX4WMWZxIa+TWQ p+oPZZcH+R/vMP+xnWc1oJQbiOexpUd7kniG/ncmA/XfpHXIQGDW1BLPvrSWmEiy2K+h srZiHFHO49lvun4mT7hyiilZgW0WC3pggBYdzgek9wiMjB+OPasiWDvcLeOr1NRxJyEr uJvQ== 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=kHFJrgUpZw7Y+xjcJPH4RGtbltsFQQxhhVhSKX9VtfE=; b=hC0liIwi3xAjZG9dlpReHPyBA07zBfaBWfF4Xb1IGOZqPPVwaeXExMCEdalki2+CUJ 4jV+RKoqFU9Ntn1b8macp3eTg+6VmP4YT2IY19AdIrJCjZUbJxVFIoFlsRUfXZncbA01 pyku/CgcO8Px0+2q/i74T4pV479hwZ18bNzzmkYxQ0MsT7kKM0u+roBuSKbRXk3WVfwQ /NyzI3Cb8MaKmWiG7nqqdAIhMwYoJFdaOy+B14P+gH6/YSrUbZm85SmbqxH9x2iNqfUY nyG2/VL8JB6JCG11C4LHnk7jkcxbT5zsyHeC35AGz1WZvXF9x/RlEE2/Tq8EN+3b3ntn QmRA== X-Gm-Message-State: APjAAAWjxTYS1McR1fCKf+ZWO5imF+6wM9ztr8hw2wqfhfUROshwDYNl YDCP92dSnBC51V+5ppu2LU9iF9kQwK7rFhpG2v/+UuROP45zh2MB7u9Fe6NawGYUJzLhLLCXQS6 OV3I+DXG726YddInJFKx1Wmc2cWj8VS7PjvQ51v/J7GTaGsu0ECmwwW1jrLYh7c0VaJVFlHKwcR 1RrUi7FDNxImZmj3fvDt3c X-Google-Smtp-Source: APXvYqzVqe3LsMdUfKKk9EQJaV74oVCiWdH8BZwrGNC/e76C4MFlR99cU5RYvvHxMt9fbqc4zBGZKg== X-Received: by 2002:a05:620a:1429:: with SMTP id k9mr5699199qkj.238.1553225175632; Thu, 21 Mar 2019 20:26:15 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([201.186.80.67]) by smtp.gmail.com with ESMTPSA id n184sm3991540qke.29.2019.03.21.20.26.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Mar 2019 20:26:15 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id B7499120655; Fri, 22 Mar 2019 00:26:12 -0300 (-03) Date: Fri, 22 Mar 2019 00:26:12 -0300 From: Alvaro Herrera To: Michael Paquier Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Add pg_partition_root to display top-most parent of a partition Message-ID: <20190322032612.GA323@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-Feb-08, Michael Paquier wrote: > Add pg_partition_root to display top-most parent of a partition tree > > This is useful when looking at partition trees with multiple layers, and > combined with pg_partition_tree, it provides the possibility to show up > an entire tree by just knowing one member at any level. I noticed days ago that if you call pg_partition_root on the topmost partitioned table, the server crashes :-) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services