add operator ^= to mean not equal (like != and <>)

From: 孙诗浩(思才) <sunshihao(dot)ssh(at)alibaba-inc(dot)com>
To: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: add operator ^= to mean not equal (like != and <>)
Date: 2021-08-10 08:27:20
Message-ID: 063a08e7-fca3-43d9-8953-5e28bcbeada3.sunshihao.ssh@alibaba-inc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi everyone,
I am doding some jobs in postgres. I want to add "^=" like "!=" and "<>".

So i modify the code in scan.l.
Plan 1:
equals_greater "=>"
less_equals "<="
greater_equals ">="
less_greater "<>"
not_equals (!=|\^=)

Maybe i can delete some code to make the code more simple.
Plan 2:
equals_greater "=>"
less_equals "<="
greater_equals ">="
less_greater "<>" (delete this definition)
not_equals (!=|\^=|<>)

Before send patch review, I want to konw whether the postgres maintainer will approve my changes.

So, please give me some advice.

Thank you!

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gilles Darold 2021-08-10 08:41:20 Re: [PATCH] Hooks at XactCommand level
Previous Message Gilles Darold 2021-08-10 08:12:26 Re: [PATCH] Hooks at XactCommand level