pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vik Fearing <vik@postgresfriends.org>
To: Matheus Alcantara <matheusssilv97@gmail.com>
To: Marcos Pegoraro <marcos@f10.com.br>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Cc: Peter Eisentraut <peter@eisentraut.org>
Subject: Re: Proposal: QUALIFY clause
Date: Tue, 22 Jul 2025 23:21:22 +0200
Message-ID: <c5e9fe6e-0f93-4933-97f1-85a0acc774be@postgresfriends.org> (raw)
In-Reply-To: <DBIT8MD9O3W8.2ZPWNBOAZ5IBE@gmail.com>
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>
	<DBIKCA3XAHPS.QIAI5362CP5M@gmail.com>
	<CAB-JLwboVrNVRPD4CC1bJhgJQB50wcUn-NWkfgEpfXsmby1spg@mail.gmail.com>
	<DBIT8MD9O3W8.2ZPWNBOAZ5IBE@gmail.com>


On 22/07/2025 20:54, Matheus Alcantara wrote:
> (this happens on transformQualifyClause() if you want to take a look)


I took a quick look at the patch (without applying and testing it) and 
it seems to me that parse analysis is the wrong place to do this. We 
want ruleutils to be able to spew out the QUALIFY clause as written in a 
view and not as transformed.  If we are going to go down the syntax 
transformation route, that should happen in the rewriter at 
planning/execution time.

-- 

Vik Fearing






view thread (41+ messages)  latest in thread

Message-ID: <c5e9fe6e-0f93-4933-97f1-85a0acc774be@postgresfriends.org>
Permalink:  ../c5e9fe6e-0f93-4933-97f1-85a0acc774be@postgresfriends.org/
Also on:    postgresql.org/message-id/c5e9fe6e-0f93-4933-97f1-85a0acc774be@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, matheusssilv97@gmail.com, marcos@f10.com.br, peter@eisentraut.org
  Subject: Re: Proposal: QUALIFY clause
  In-Reply-To: <c5e9fe6e-0f93-4933-97f1-85a0acc774be@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> <DBIKCA3XAHPS.QIAI5362CP5M@gmail.com> <CAB-JLwboVrNVRPD4CC1bJhgJQB50wcUn-NWkfgEpfXsmby1spg@mail.gmail.com> <DBIT8MD9O3W8.2ZPWNBOAZ5IBE@gmail.com> <c5e9fe6e-0f93-4933-97f1-85a0acc774be@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