Use association instead of explicit join
Extract temporary variable
Add composite index to postfix_log_lines