Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gGODt-0002o2-4D for pgsql-general@arkaria.postgresql.org; Sat, 27 Oct 2018 13:01:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gGODp-0003gJ-SE for pgsql-general@arkaria.postgresql.org; Sat, 27 Oct 2018 13:01:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gGODp-0003g6-7Q for pgsql-general@lists.postgresql.org; Sat, 27 Oct 2018 13:01:45 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gGODf-0006x7-OK for pgsql-general@postgresql.org; Sat, 27 Oct 2018 13:01:42 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 1CA77FF35185 for ; Sat, 27 Oct 2018 06:01:34 -0700 (MST) Date: Sat, 27 Oct 2018 06:01:34 -0700 (MST) From: legrand legrand To: pgsql-general@postgresql.org Message-ID: <1540645294115-0.post@n3.nabble.com> In-Reply-To: References: Subject: Re: How to get partition info for a partition table? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk see https://www.postgresql.org/docs/9.5/static/app-psql.html for psql options an commands: psql -d ... -U ... \d+ measurement_year_month ... Partition key: RANGE (date_part('year'::text, logdate), date_part('month'::text, logdate)) Number of partitions: 0 if you want to know how postgresql is retrieving those informations try -E option for ECHO_HIDDEN psql -d ... -U ... -E \d+ measurement_year_month -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html