Enabling enable_sproc_hist_logging
Learn how to enable enable_sproc_hist_logging.
Procedure
Enabling enable_sproc_hist_logging globally
- If query history is not enabled, enable it.
- Add the following configuration parameter in
postgresql.conf.
enable_sproc_hist_logging = true
- Restart Netezza Performance Server.
Enabling enable_sproc_hist_logging at a session level
- If query history is not enabled, enable it.
- Use the set command.
-
SYSTEM.ADMIN(ADMIN)=> show enable_sproc_hist_logging;
-
SHOW VARIABLE SYSTEM.ADMIN(ADMIN)=> set enable_sproc_hist_logging=true; SET VARIABLE SYSTEM.ADMIN(ADMIN)=> show enable_sproc_hist_logging;
Example:SYSTEM.ADMIN(ADMIN)=> show enable_sproc_hist_logging; NOTICE: ENABLE_SPROC_HIST_LOGGING is off SHOW VARIABLE SYSTEM.ADMIN(ADMIN)=> set enable_sproc_hist_logging=true; SET VARIABLE SYSTEM.ADMIN(ADMIN)=> show enable_sproc_hist_logging; NOTICE: ENABLE_SPROC_HIST_LOGGING is on SHOW VARIABLE
-