Re: [BUGS] BUG #4277: Feature request inet type cast numeric values

2008-07-01 Thread Tom Lane
"Heikki Linnakangas" <[EMAIL PROTECTED]> writes: >> Description:Feature request inet type cast numeric values > You can create the cast yourself if you want to, see CREATE CAST. The proposed cast seems rather inappropriate in an IPv6 world anyway. If you want IPv4-only functionality, I th

Re: [BUGS] BUG #4277: Feature request inet type cast numeric values

2008-07-01 Thread Heikki Linnakangas
x wrote: Description:Feature request inet type cast numeric values Details: SELECT inet 2130706433; Should return: ?column? 127.0.0.1 This would emulate the functionality: CREATE OR REPLACE FUNCTION inet_ntoa(bigint) RETURNS text AS ' SELECT (($1>>24) & 255::int8) || ''.'' |

[BUGS] BUG #4277: Feature request inet type cast numeric values

2008-07-01 Thread x
The following bug has been logged online: Bug reference: 4277 Logged by: x Email address: [EMAIL PROTECTED] PostgreSQL version: n/a Operating system: n/a Description:Feature request inet type cast numeric values Details: SELECT inet 2130706433; Should return: ?colu