Re: How to create a new operator inpg for spec data type?

Поиск
Список
Период
Сортировка
От Erik Wienhold
Тема Re: How to create a new operator inpg for spec data type?
Дата
Msg-id 1793578543.67829.1675233431851@office.mailbox.org
обсуждение исходный текст
Ответ на How to create a new operator inpg for spec data type?  ("jacktby@gmail.com" <jacktby@gmail.com>)
Список pgsql-general
> On 01/02/2023 06:40 CET jacktby@gmail.com <jacktby@gmail.com> wrote:
>
> I need to create a new operator like '<->' and its syntax is that text1 <-> text2,
> for the usage like this: 'a' <-> 'b' = 'a1b1', so how could I realize this one?
> Can you give me some exmaples.

https://www.postgresql.org/docs/current/sql-createoperator.html

But why use an operator and not just the function that you must create anyway?

--
Erik



В списке pgsql-general по дате отправления:

Предыдущее
От: Tony Shelver
Дата:
Сообщение: Re: Best Open Source OS for Postgresql
Следующее
От: Brad White
Дата:
Сообщение: Re: Best Open Source OS for Postgresql