Commutative operators/type conversion operators

From: "Gene Sokolov" <hook(at)aktrad(dot)ru>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Commutative operators/type conversion operators
Date: 1999-10-19 15:04:14
Message-ID: 0a1001bf1a43$38f64d60$0d8cdac3@aktrad.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Browse pgsql-general by date

  From Date Subject
Next Message Adam Haberlach 1999-10-19 15:36:36 Re: [GENERAL] Installation simplicity
Previous Message Doran L. Barton 1999-10-19 14:47:17 Re: [GENERAL] Connection to database 'template1' failed.