title: PostgreSQL: store IP address of a connection in a table
body: <p>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?</p>
  
  <p>Thanks.</p>