Various bits of my postgre SQL travels