is pgpool handle transaction before call send_simplequery_message or pool_write_and_flush i mean that every sql statement will collect , just before 'commit transaction' which one function that should be user for that purpose ?.