Creating operators

From: "Gene Sokolov" <hook(at)aktrad(dot)ru>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Creating operators
Date: 1999-10-20 06:09:58
Message-ID: 0a2001bf1ac1$bf46c600$0d8cdac3@aktrad.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Since no one replied in pg-general, I am reposting to hackers.

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-hackers by date

  From Date Subject
Next Message Kaare Rasmussen 1999-10-20 06:17:37 Re: [HACKERS] book status
Previous Message Charles Tassell 1999-10-20 05:56:56 Re: [GENERAL] Postgres INSERTs much slower than MySQL?