awk -f /var/lib/postgresql/prewikka-sql/prewikka.awk /var/lib/postgresql/data/pg_log/postgre*.log >> /var/lib/postgresql/query.sql