This case fails currently:
testdb=# CREATE TABLE INET_TBL (c cidr, i inet); CREATE TABLE testdb=# INSERT INTO INET_TBL (c, i) VALUES ('10:23::f1', '10:23::f1/64'); ERROR: could not format inet value: Address family not supported by protocol family
This case succeed for me,
postgres=# CREATE TABLE INET_TBL(c cidr, i inet); CREATE TABLE postgres=# INSERT INTO INET_TBL VALUES ('10:23::f1', '10:23::f1/64'); INSERT 0 1 postgres=# SELECT * FROM INET_TBL; c | i ---------------+-------------- 10:23::f1/128 | 10:23::f1/64 (1 row)
Log in to post a comment.
This case succeed for me,
postgres=# CREATE TABLE INET_TBL(c cidr, i inet);
CREATE TABLE
postgres=# INSERT INTO INET_TBL VALUES ('10:23::f1', '10:23::f1/64');
INSERT 0 1
postgres=# SELECT * FROM INET_TBL;
c | i
---------------+--------------
10:23::f1/128 | 10:23::f1/64
(1 row)