Re: Unary Operators
От | Andreas Ulbrich |
---|---|
Тема | Re: Unary Operators |
Дата | |
Msg-id | 523B22CC.3070100@matheversum.de обсуждение исходный текст |
Ответ на | Re: Unary Operators (David Johnston <polobo@yahoo.com>) |
Список | pgsql-general |
On 18.09.2013 02:17, David Johnston wrote: > Andreas Ulbrich wrote >> create operator ^- (leftarg = float, procedure = reciproce); >> works too, but >> create operator / (leftarg = float, procedure = reciproce); >> not. > Do you mean the "^" operator or the "^-" operator? Rowan claims that "^" > does not in fact work here... > > > -- > View this message in context: http://postgresql.1045698.n5.nabble.com/Unary-Operators-tp5770983p5771360.html > Sent from the PostgreSQL - general mailing list archive at Nabble.com. > > I'd like to take the /-Operator as the inverse element of an element relating to multiplication analogous the '-'-Operator for the inverse relating to addition. As a compromise, because the left unary / not work, I took '^-' for "to the power of minus (one)". It sounds logical, that native operators (4.1.6, Table 4-2) could be not redefined with other number of arguments (% doesn't work to as left unary...). But than a miss some documentation hints what are native operators. Thanks Andreas
В списке pgsql-general по дате отправления: