As suggested, i had changed the log_statement='ddl' and now it is logging only the ddl statements . thanks for the tip. Can i delete the old log files in pg_log after backing up as zip archive ? is it neccesary to keep those log files ?
they're yours, you can do whatever you wish with em. pg_logs are just textual log files.
pg_xlogs on the other hand, you should never touch (unless using logs storage/shipment for backups/replication).