Is there an easy way to convert int to IP address in PostgreSQL? I was able to switch from IP to int using this code:
SELECT inet '1.2.3.4' - '0.0.0.0'
This does not work:
SELECT 16909060 :: inet
I did not see anything in the documentation. Does anyone know how to do this?
postgresql
User1
source share