Re: How to add a new operator for parser?

From: Julien Rouhaud <rjuju123(at)gmail(dot)com>
To: jacktby jacktby <jacktby(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: How to add a new operator for parser?
Date: 2023-08-06 07:25:23
Message-ID: 20230806072523.y72qer5rnkhcydou@jrouhaud
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2023-08-06 09:55:18 Re: Improve join_search_one_level readibilty (one line change)
Previous Message jacktby jacktby 2023-08-06 05:37:42 Re: How to add a new operator for parser?