Re: [HACKERS] Arithmetic operators for macaddr type

2012-01-19 Thread Robert Haas
On Tue, Jan 17, 2012 at 12:38 AM, Fujii Masao masao.fu...@gmail.com wrote: Here is a patch for $SUBJECT.  I merely added support for ~, and | operators for the macaddr type.  The patch itself is rather trivial, and includes regression tests and a doc update. The patch looks fine except that

Re: [HACKERS] Arithmetic operators for macaddr type

2012-01-16 Thread Fujii Masao
On Tue, Dec 13, 2011 at 2:16 PM, Brendan Jurd dire...@gmail.com wrote: On 12 December 2011 15:59, Pavel Stehule pavel.steh...@gmail.com wrote: 2011/12/12 Brendan Jurd dire...@gmail.com: I just bumped into a situation where I wanted to do a little macaddr arithmetic in postgres.  I note that

Re: [HACKERS] Arithmetic operators for macaddr type

2011-12-12 Thread Brendan Jurd
On 12 December 2011 15:59, Pavel Stehule pavel.steh...@gmail.com wrote: 2011/12/12 Brendan Jurd dire...@gmail.com: I just bumped into a situation where I wanted to do a little macaddr arithmetic in postgres.  I note that the inet type has support for bitwise AND, OR and NOT, as well as

[HACKERS] Arithmetic operators for macaddr type

2011-12-11 Thread Brendan Jurd
Hello folks, I just bumped into a situation where I wanted to do a little macaddr arithmetic in postgres. I note that the inet type has support for bitwise AND, OR and NOT, as well as subtraction, but macaddr has none of the above. These operations are easy to perform in C, but relatively a

Re: [HACKERS] Arithmetic operators for macaddr type

2011-12-11 Thread Pavel Stehule
2011/12/12 Brendan Jurd dire...@gmail.com: Hello folks, I just bumped into a situation where I wanted to do a little macaddr arithmetic in postgres.  I note that the inet type has support for bitwise AND, OR and NOT, as well as subtraction, but macaddr has none of the above. These