I execute a same query into loop, only the arguments change.
Then I can do:
  • loop{PQexecParams}
  • PQprepare + loop{PQexecPrepared}

It's the same? What is the performance impact?
I understand have more performance with PQexecPrepared than PQexecParams because PQexecParams reparse each time the query.
PostgreSQL server use 4x more cpu (near of 0% HDD) than my connected software.