pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pradeep <pradeep.kumar.pc@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: filter partitions
Date: Thu, 15 Feb 2018 22:59:04 -0700 (MST)
Message-ID: <1518760744079-0.post@n3.nabble.com> (raw)
In-Reply-To: <5a82ff51.8f0c1c0a.ffaa0.df34@mx.google.com>
References: <5a82ff51.8f0c1c0a.ffaa0.df34@mx.google.com>

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




view thread (5+ messages)

Message-ID: <1518760744079-0.post@n3.nabble.com>
Permalink:  ../1518760744079-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1518760744079-0.post@n3.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: pradeep.kumar.pc@gmail.com
  Subject: Re: filter partitions
  In-Reply-To: <1518760744079-0.post@n3.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox