Disabling enable_sproc_hist_logging
Learn how to disable enable_sproc_hist_logging.
Procedure
After you disable this parameter, queries from stored procedure that is run from current session are not recorded in the query history database.
Disabling enable_sproc_hist_logging globally
To disable the feature globally, you can either:
-
- Remove
enable_sproc_hist_loggingfrom postgresql.conf. - Restart Netezza Performance Server
- Remove
-
- Set the following line in
postgresql.conf.
enable_sproc_hist_logging = false - Restart Netezza Performance Server
- Set the following line in
postgresql.conf.
Disabling enable_sproc_hist_logging at a session level
- Set
enable_sproc_hist_loggingtofalse:-
SYSTEM.ADMIN(ADMIN)=> show enable_sproc_hist_logging;
Example:SHOW VARIABLE SYSTEM.ADMIN(ADMIN)=> set enable_sproc_hist_logging=false; SET VARIABLE SYSTEM.ADMIN(ADMIN)=> show enable_sproc_hist_logging;SYSTEM.ADMIN(ADMIN)=> show enable_sproc_hist_logging; NOTICE: ENABLE_SPROC_HIST_LOGGING is on SHOW VARIABLE SYSTEM.ADMIN(ADMIN)=> set enable_sproc_hist_logging=false; SET VARIABLE SYSTEM.ADMIN(ADMIN)=> show enable_sproc_hist_logging; NOTICE: ENABLE_SPROC_HIST_LOGGING is off SHOW VARIABLE
-