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 1emZ38-0007WZ-61 for pgsql-admin@arkaria.postgresql.org; Fri, 16 Feb 2018 05:59:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emZ37-0001H8-9y for pgsql-admin@arkaria.postgresql.org; Fri, 16 Feb 2018 05:59:09 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1emZ37-0001Gx-2s for pgsql-admin@lists.postgresql.org; Fri, 16 Feb 2018 05:59:09 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1emZ34-0008SF-B0 for pgsql-admin@postgresql.org; Fri, 16 Feb 2018 05:59:08 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 14118B2EEFCC for ; Thu, 15 Feb 2018 22:59:04 -0700 (MST) Date: Thu, 15 Feb 2018 22:59:04 -0700 (MST) From: pradeep To: pgsql-admin@postgresql.org Message-ID: <1518760744079-0.post@n3.nabble.com> In-Reply-To: <5a82ff51.8f0c1c0a.ffaa0.df34@mx.google.com> References: <5a82ff51.8f0c1c0a.ffaa0.df34@mx.google.com> Subject: Re: filter partitions 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 use select p, max(item) over (partition by p) from item where item='D' -- Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html