Commutative operators/type conversion operators - Mailing list pgsql-general

From Gene Sokolov
Subject Commutative operators/type conversion operators
Date
Msg-id 0a1001bf1a43$38f64d60$0d8cdac3@aktrad.ru
Whole thread Raw
List pgsql-general
Q1:
Let's say I want to create a '+' operator for <my own type> + int4. Do I
really have to
define two '+' operators, one

<my own type> + int

and the other

int + <my own type>

Q2:

Can I create an operator '::', such as <my own type>::double ?

Gene Sokolov.



pgsql-general by date:

Previous
From: "Doran L. Barton"
Date:
Subject: Re: [GENERAL] Connection to database 'template1' failed.
Next
From: "Duncan Kinder"
Date:
Subject: Re: [GENERAL] Installation simplicity