Controls whether cached plans are optimized using value estimates.
On, Off
On
PUBLIC role | For current user | For other users | |
---|---|---|---|
Allowed to set permanently? | Yes, with SET ANY PUBLIC OPTION | Yes | Yes, with SET ANY PUBLIC OPTION |
Allowed to set temporarily? | Yes, with SET ANY PUBLIC OPTION | Yes (current connection only) | No |
If set to On, cached plans are optimized using value estimates influenced by the actual values provided with the statements when the plan was cached. If set to Off, cached plans are optimized independently of the actual values provided.
Off corresponds to the behavior in versions 16 and earlier of the software.