Convert IP address for Amazon Redshift
PostgreSQL offers network address types to store IP address. You can define the IP column as inet type, then simply insert the human readable IP address string (e.g. “192.168.1.1”) into the table.
Tech Notes from Steven