Hi
I'd like to have a column in a Postgres table which will store the remote IP address of the user connecting to the database. I'm thinking of data type "inet" with some sort of default constraint. Any ideas?
Thanks.
Hi
I'd like to have a column in a Postgres table which will store the remote IP address of the user connecting to the database. I'm thinking of data type "inet" with some sort of default constraint. Any ideas?
Thanks.
Can you be a little more specific? Do you mean to record the IP of every user that connects with the psql command line, or do you have a website built with a Postgres database on the backend? If you're logging from a website, then the inet datatype should work great.