1. A computer-implemented method, comprising: receiving a database query; estimating an energy consumption requirement for generating a new query plan adapted for executing the database query; estimating an energy consumption saving resulting from executing the new query plan instead of executing an existing query plan; and upon determining that the energy consumption saving exceeds the energy consumption requirement, generating the new query plan.