Re: Ipv6 address stored differently while using Inet type

2018-12-27 Thread Peter J. Holzer
On 2018-12-27 14:56:25 +0530, Sameer Thakur wrote: > I am using Postgres 10.4 > I tried to insert ipv6 address '2001:db8:::::1.2.3.4' > in Postgres (10.4) in an inet column. It is stored as > 2001:db8:::::102:304. No. It is *displayed* as

Ipv6 address stored differently while using Inet type

2018-12-27 Thread Sameer Thakur
Hello, I am using Postgres 10.4 I tried to insert ipv6 address '2001:db8:::::1.2.3.4' in Postgres (10.4) in an inet column. It is stored as 2001:db8:::::102:304. Why is the IP stored differently? Does the stored IP represent the same one being inserted? Is this a