pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vik Fearing <vik@postgresfriends.org>
To: Nico Williams <nico@cryptonector.com>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Matheus Alcantara <matheusssilv97@gmail.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Cc: Peter Eisentraut <peter@eisentraut.org>
Subject: Re: Proposal: QUALIFY clause
Date: Tue, 22 Jul 2025 17:24:24 +0200
Message-ID: <737a77a2-83eb-4b97-a109-e58d3ce1189a@postgresfriends.org> (raw)
In-Reply-To: <aH+qvHJXcrjdwvOH@ubby>
References: <CAFY6G8euMWRjTEdRV9M=RL2_EJNDm5UNeHat9U1FGGwzfjGSfw@mail.gmail.com>
	<a042f530-90a4-46fc-8595-43053fcfc06e@postgresfriends.org>
	<DBI1WKCGAPN4.321XNB6R2YKPT@gmail.com>
	<6c998e4f-f6f2-43c2-8b67-cfff360ef241@postgresfriends.org>
	<CAFj8pRCNZ8vLca8XK8s-Xha7PDmfw0r_JXnhb8Z87On4O=qctQ@mail.gmail.com>
	<CAHyXU0wnmAC2aSJXE8mWarydvQ_gY9OEFrpRNZ9OQ3De3vXZ2A@mail.gmail.com>
	<aH8OuSXcoZTL0Vg6@ubby>
	<CAHyXU0zxy1-W4YH9KhtBr07eWN-8xJJLUPdpoHNQ0t16Ve7F-w@mail.gmail.com>
	<aH+qvHJXcrjdwvOH@ubby>


On 22/07/2025 17:14, Nico Williams wrote:
> It doesn't seem too crazy that extra WHEREs in WHERE clauses should some
> day function as ANDs, and ditto HAVINGs, which is another reason not to
> reuse HAVING for this: just to leave that a possibility, remote though
> it might be.


I have a firm finger on the pulse of the standards committee, and I can 
guarantee that multiple WHERE clauses will never replace AND until 
certain people cross the river Styx.  Myself included.


> My advice is to wait till QUALIFY is standardized, then hold your nose
> and adopt it, or maybe sooner when it becomes clear that it will be
> standardized (because so many other RDBMSes have it too).


Good advice.

-- 

Vik Fearing

view thread (41+ messages)  latest in thread

Message-ID: <737a77a2-83eb-4b97-a109-e58d3ce1189a@postgresfriends.org>
Permalink:  ../737a77a2-83eb-4b97-a109-e58d3ce1189a@postgresfriends.org/
Also on:    postgresql.org/message-id/737a77a2-83eb-4b97-a109-e58d3ce1189a@postgresfriends.org

 · 

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 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-hackers@postgresql.org
  Cc: vik@postgresfriends.org, nico@cryptonector.com, mmoncure@gmail.com, pavel.stehule@gmail.com, matheusssilv97@gmail.com, peter@eisentraut.org
  Subject: Re: Proposal: QUALIFY clause
  In-Reply-To: <737a77a2-83eb-4b97-a109-e58d3ce1189a@postgresfriends.org>
  References: <CAFY6G8euMWRjTEdRV9M=RL2_EJNDm5UNeHat9U1FGGwzfjGSfw@mail.gmail.com> <a042f530-90a4-46fc-8595-43053fcfc06e@postgresfriends.org> <DBI1WKCGAPN4.321XNB6R2YKPT@gmail.com> <6c998e4f-f6f2-43c2-8b67-cfff360ef241@postgresfriends.org> <CAFj8pRCNZ8vLca8XK8s-Xha7PDmfw0r_JXnhb8Z87On4O=qctQ@mail.gmail.com> <CAHyXU0wnmAC2aSJXE8mWarydvQ_gY9OEFrpRNZ9OQ3De3vXZ2A@mail.gmail.com> <aH8OuSXcoZTL0Vg6@ubby> <CAHyXU0zxy1-W4YH9KhtBr07eWN-8xJJLUPdpoHNQ0t16Ve7F-w@mail.gmail.com> <aH+qvHJXcrjdwvOH@ubby> <737a77a2-83eb-4b97-a109-e58d3ce1189a@postgresfriends.org>

* 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