How to set Optimizer at database level in greenplum
How can I turn ON optimizer at Database level?
You can set the optimier ON at database level using below command;
ALTER DATABASE databasename SET OPTIMIZER = ON;
Once this is done, kindly do reconnect to Database to see the change.
How do I check if optimizer is set (ON/OFF) in a given database?
You can use the show command as below to check
psql -d databasename -c 'show optimizer'
Comments
Post a Comment