Better regexp matching for Postgres logs