Log skeletons for queries in server (live from parser) but without constants
Things to consider:
* Should use a fixed memory size. Queries should be removed as FIFO
* Small CPU overhead
* IN(a,b,c) should be equal recorded as IN(#) (One constant)
* multi row inserts needs to be handled as one insert.
We also need a method to do regular expression replacement for table names. This
is needed to be able to recognize similar tables like log tables with a _YYMMDD
Statistics to collect per query:
- Number of times executed
- Total time executed (in microseconds)
- Rows read, inserted, updated and deleted.
Observers changed: Sergei