Re: How to add a new operator for parser? - Mailing list pgsql-hackers

From Julien Rouhaud
Subject Re: How to add a new operator for parser?
Date
Msg-id 20230806072523.y72qer5rnkhcydou@jrouhaud
Whole thread Raw
In response to Re: How to add a new operator for parser?  (jacktby jacktby <jacktby@gmail.com>)
List pgsql-hackers
On Sun, Aug 06, 2023 at 01:37:42PM +0800, jacktby jacktby wrote:
>
> I need to build a new datatype. It can contains different datatypes, like
> ‘(1,’a’,2.0)’,it’s a (interger,string,float) tuple type

Is there any reason why you can't simply rely on the record datatype?

> and Then I need to
> add operator for it. How should I do?

If using record datatype you would only need to add a new operator.



pgsql-hackers by date:

Previous
From: jacktby jacktby
Date:
Subject: Re: How to add a new operator for parser?
Next
From: David Rowley
Date:
Subject: Re: Improve join_search_one_level readibilty (one line change)