From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ben Clements <benhasgonewalking@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Idea: PostgreSQL equivalent to Oracle's KEEP clause
Date: Mon, 06 Mar 2023 18:40:43 -0500
Message-ID: <3766373.1678146043@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFKPu3vbSOwmYm=uUSgPuUvgVAFQvcwx1U5HD9Vy+GhHzQsO_g@mail.gmail.com>
References: <CAFKPu3vbSOwmYm=uUSgPuUvgVAFQvcwx1U5HD9Vy+GhHzQsO_g@mail.gmail.com>
Ben Clements <benhasgonewalking@gmail.com> writes:
> As shown above, the following calculated column can bring in the city name,
> even though the city name isn't in the GROUP BY:
> max(city) keep (dense_rank first order by population desc)
You haven't really explained what this does, let alone why it can't
be implemented with existing features such as FILTER and ORDER BY.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, benhasgonewalking@gmail.com
Subject: Re: Idea: PostgreSQL equivalent to Oracle's KEEP clause
In-Reply-To: <3766373.1678146043@sss.pgh.pa.us>
References: <CAFKPu3vbSOwmYm=uUSgPuUvgVAFQvcwx1U5HD9Vy+GhHzQsO_g@mail.gmail.com> <3766373.1678146043@sss.pgh.pa.us>
* 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