[enhance] compiler, database, postgres: Handle queries options