You are on page 1of 334

#!

/bin/sh

# Release 7.2.1.3-P3 [Build 49525]

nzsql -l > /tmp/HISTDB_schema.sh_$$.sqlout


if egrep -iq '^ +HISTDB +\|' /tmp/HISTDB_schema.sh_$$.sqlout; then
echo "Database 'HISTDB' already exists."
echo "Please verify the purpose and value of the existing database before
proceeding."
rm -f /tmp/HISTDB_schema.sh_$$.sqlout
exit -1
fi
rm -f /tmp/HISTDB_schema.sh_$$.sqlout

nzsql system -q <<-EOF

-- Create Database
\echo -n 'Creating "HISTDB" database...'
create database HISTDB;
\echo 'done.'

EOF

export NZ_ENCODING=utf8
nzsql HISTDB -q <<-EOF

-- Number of Schemas = 1
-- Number of Tables = 22
-- Number of Views = 8
-- Number of Sequences = 1
-- Number of Synonyms = 0
-- Number of UDFs = 0
-- Number of Stored Procedures = 0
-- Number of UDAs = 0
-- Number of libraries = 0

-- Schema Definitions

\echo -n 'Creating Schemas...'

CREATE SCHEMA QHISTDBUSER;


\echo -n .

\echo 'done(1 Schemas).'

-- Table Definitions

\echo -n 'Creating Tables'


CREATE TABLE QHISTDBUSER."\$hist_column_access_3" ( -- Number of Columns = 15
NPSID INTEGER,
NPSINSTANCEID INTEGER,
OPID BIGINT,
LOGENTRYID BIGINT,
SEQID INTEGER,
SESSIONID BIGINT,
DBID INTEGER,
DBNAME NATIONAL CHARACTER VARYING(128),
SCHEMAID INTEGER,
SCHEMANAME NATIONAL CHARACTER VARYING(128),
TABLEID INTEGER,
TABLENAME NATIONAL CHARACTER VARYING(128),
COLUMNID INTEGER,
COLUMNNAME NATIONAL CHARACTER VARYING(128),
USAGE INTEGER
) DISTRIBUTE ON (NPSID,NPSINSTANCEID,OPID);
\echo -n .

CREATE TABLE QHISTDBUSER."\$hist_failed_authentication_3" ( -- Number of Columns =


9
NPSID INTEGER,
NPSINSTANCEID INTEGER,
LOGENTRYID BIGINT,
CLIENTIP CHARACTER(16),
SESSIONUSERNAME NATIONAL CHARACTER VARYING(128),
TIME TIMESTAMP,
FAILURETYPE INTEGER,
FAILURE CHARACTER VARYING(512),
TZOFFSET INTEGER
) DISTRIBUTE ON (NPSID,NPSINSTANCEID,LOGENTRYID);
\echo -n .

CREATE TABLE QHISTDBUSER."\$hist_log_entry_3" ( -- Number of Columns = 7


NPSID INTEGER,
NPSINSTANCEID INTEGER,
LOGENTRYID BIGINT,
SESSIONID BIGINT,
OP INTEGER,
TIME TIMESTAMP,
TZOFFSET INTEGER
) DISTRIBUTE ON (NPSID,NPSINSTANCEID,LOGENTRYID);
\echo -n .

CREATE TABLE QHISTDBUSER."\$hist_nps_3" ( -- Number of Columns = 5


NPSID INTEGER,
UUID CHARACTER(36),
SERVERHOST CHARACTER VARYING(256),
SERVERIP CHARACTER(16),
NPSINSTANCEID INTEGER
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE QHISTDBUSER."\$hist_plan_epilog_3" ( -- Number of Columns = 12


NPSID INTEGER,
NPSINSTANCEID INTEGER,
OPID BIGINT,
LOGENTRYID BIGINT,
SESSIONID BIGINT,
PLANID INTEGER,
ENDTIME TIMESTAMP,
DONESNIPPETS INTEGER,
RESULTROWS BIGINT,
RESULTBYTES BIGINT,
STATUS INTEGER,
TZOFFSET INTEGER
) DISTRIBUTE ON (NPSID,NPSINSTANCEID,OPID);
\echo -n .
CREATE TABLE QHISTDBUSER."\$hist_plan_prolog_3" ( -- Number of Columns = 21
NPSID INTEGER,
NPSINSTANCEID INTEGER,
OPID BIGINT,
LOGENTRYID BIGINT,
SESSIONID BIGINT,
PLANID INTEGER,
XID BIGINT,
GKPRIORITY INTEGER,
SUBMITTIME TIMESTAMP,
QUEUETIME TIMESTAMP,
PREPTIME TIMESTAMP,
GRATIME TIMESTAMP,
STARTTIME TIMESTAMP,
ISMAINPLAN BOOLEAN,
ESTIMATEDCOST DOUBLE PRECISION,
ESTIMATEDDISK BIGINT,
ESTIMATEDMEM BIGINT,
TOTALSNIPPETS BIGINT,
SIGNATURE BIGINT,
QCRESTART INTEGER,
TZOFFSET INTEGER
) DISTRIBUTE ON (NPSID,NPSINSTANCEID,OPID);
\echo -n .

CREATE TABLE QHISTDBUSER."\$hist_query_epilog_3" ( -- Number of Columns = 9


NPSID INTEGER,
NPSINSTANCEID INTEGER,
OPID BIGINT,
LOGENTRYID BIGINT,
SESSIONID BIGINT,
FINISHTIME TIMESTAMP,
RESULTROWS BIGINT,
STATUS INTEGER,
TZOFFSET INTEGER
) DISTRIBUTE ON (NPSID,NPSINSTANCEID,OPID);
\echo -n .

CREATE TABLE QHISTDBUSER."\$hist_query_overflow_3" ( -- Number of Columns = 8


NPSID INTEGER,
NPSINSTANCEID INTEGER,
OPID BIGINT,
LOGENTRYID BIGINT,
SESSIONID BIGINT,
SEQUENCEID INTEGER,
NEXT INTEGER,
QUERYTEXT NATIONAL CHARACTER VARYING(8192)
) DISTRIBUTE ON (NPSID,NPSINSTANCEID,OPID);
\echo -n .

CREATE TABLE QHISTDBUSER."\$hist_query_prolog_3" ( -- Number of Columns = 20


NPSID INTEGER,
NPSINSTANCEID INTEGER,
OPID BIGINT,
LOGENTRYID BIGINT,
SESSIONID BIGINT,
PARENTOPID BIGINT,
USERID BIGINT,
USERNAME NATIONAL CHARACTER VARYING(128),
SUBMITTIME TIMESTAMP,
CHECKSUM CHARACTER(32),
QUERYTEXT NATIONAL CHARACTER VARYING(8192),
TZOFFSET INTEGER,
DBID BIGINT,
DBNAME NATIONAL CHARACTER VARYING(128),
SCHEMAID BIGINT,
SCHEMANAME NATIONAL CHARACTER VARYING(128),
CLIENT_USER_ID NATIONAL CHARACTER VARYING(512),
CLIENT_APPLICATION_NAME NATIONAL CHARACTER VARYING(512),
CLIENT_WORKSTATION_NAME NATIONAL CHARACTER VARYING(512),
CLIENT_ACCOUNTING_STRING NATIONAL CHARACTER VARYING(512)
) DISTRIBUTE ON (NPSID,NPSINSTANCEID,OPID);
\echo -n .

CREATE TABLE QHISTDBUSER."\$hist_service_3" ( -- Number of Columns = 6


NPSID INTEGER,
NPSINSTANCEID INTEGER,
LOGENTRYID BIGINT,
SESSIONID BIGINT,
SERVICETYPE INTEGER,
SERVICE CHARACTER VARYING(512)
) DISTRIBUTE ON (NPSID,NPSINSTANCEID,LOGENTRYID);
\echo -n .

CREATE TABLE QHISTDBUSER."\$hist_session_epilog_3" ( -- Number of Columns = 6


NPSID INTEGER,
NPSINSTANCEID INTEGER,
LOGENTRYID BIGINT,
SESSIONID BIGINT,
ENDTIME TIMESTAMP,
TZOFFSET INTEGER
) DISTRIBUTE ON (NPSID,NPSINSTANCEID,LOGENTRYID);
\echo -n .

CREATE TABLE QHISTDBUSER."\$hist_session_prolog_3" ( -- Number of Columns = 30


NPSID INTEGER,
NPSINSTANCEID INTEGER,
LOGENTRYID BIGINT,
SESSIONID BIGINT,
PID INTEGER,
CONNECTTIME TIMESTAMP,
PRIORITY INTEGER,
MAXPRIORITY INTEGER,
SESSIONUSERID BIGINT,
CURRENTUSERID BIGINT,
OPERATINGUSERID BIGINT,
SESSIONUSERNAME NATIONAL CHARACTER VARYING(128),
CURRENTUSERNAME NATIONAL CHARACTER VARYING(128),
OPERATINGUSERNAME NATIONAL CHARACTER VARYING(128),
DBID INTEGER,
DBNAME NATIONAL CHARACTER VARYING(128),
CLIENTHOST CHARACTER VARYING(256),
CLIENTIP CHARACTER(16),
CLIENTTYPE INTEGER,
CLIENTPID INTEGER,
NPSCLIENTID INTEGER,
ROWSETLIMIT INTEGER,
SESSIONTIMEOUT INTEGER,
QUERYTIMEOUT INTEGER,
SRQUEUETIMEOUT INTEGER,
QCMAXRESTARTS INTEGER,
RESOURCEGROUPID BIGINT,
RESOURCEGROUPNAME NATIONAL CHARACTER VARYING(128),
RESOURCEPERCENTAGE INTEGER,
TZOFFSET INTEGER
) DISTRIBUTE ON (NPSID,NPSINSTANCEID,LOGENTRYID);
\echo -n .

CREATE TABLE QHISTDBUSER."\$hist_state_change_3" ( -- Number of Columns = 5


NPSID INTEGER,
NPSINSTANCEID INTEGER,
LOGENTRYID BIGINT,
CHANGETYPE INTEGER,
CHANGE CHARACTER VARYING(512)
) DISTRIBUTE ON (NPSID,NPSINSTANCEID,LOGENTRYID);
\echo -n .

CREATE TABLE QHISTDBUSER."\$hist_table_access_3" ( -- Number of Columns = 13


NPSID INTEGER,
NPSINSTANCEID INTEGER,
OPID BIGINT,
LOGENTRYID BIGINT,
SEQID INTEGER,
SESSIONID BIGINT,
DBID INTEGER,
DBNAME NATIONAL CHARACTER VARYING(128),
SCHEMAID INTEGER,
SCHEMANAME NATIONAL CHARACTER VARYING(128),
TABLEID INTEGER,
TABLENAME NATIONAL CHARACTER VARYING(128),
USAGE INTEGER
) DISTRIBUTE ON (NPSID,NPSINSTANCEID,OPID);
\echo -n .

CREATE TABLE QHISTDBUSER."\$hist_version" ( -- Number of Columns = 2


HVERSION INTEGER,
DBTYPE CHARACTER(1)
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE QHISTDBUSER.HC_SYSTEM_TIMEZONE ( -- Number of Columns = 3


TIMEZONE_DESCRIPTION CHARACTER VARYING(50) not null,
NPSID INTEGER not null,
SERVERHOST CHARACTER VARYING(256) not null
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE QHISTDBUSER.NZ_CATALOG_SIZE ( -- Number of Columns = 4


LOAD_DATE TIMESTAMP,
DB_OBJID INTEGER,
DATABASE CHARACTER VARYING(128),
CATALOG_SIZE_K INTEGER
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE QHISTDBUSER.NZ_GRA_HISTORY ( -- Number of Columns = 37


ENTRY_TS BIGINT,
GROUPID INTEGER,
PLANS_STARTED INTEGER,
PLANS_FINISHED INTEGER,
PLANS_WAITING_LONG REAL,
PLANS_WAITING_SHORT REAL,
PLANS_RUNNING_LONG REAL,
PLANS_RUNNING_SHORT REAL,
TARGET_JOB_MAX SMALLINT,
TARGET_RSG_PCT SMALLINT,
TARGET_RSG_MAX SMALLINT,
ACTUAL_RSG_PCT SMALLINT,
ACTUAL_RSG_PCT_SAMPLE SMALLINT,
ACTUAL_JOB_MAX SMALLINT,
ALLOWED_RSG_PCT SMALLINT,
ALLOWED_RSG_PCT_SAMPLE SMALLINT,
EXPECTED_RSG_PCT SMALLINT,
EXPECTED_RSG_PCT_SAMPLE SMALLINT,
RSG_HORIZON_US BIGINT,
COMPLIANCE SMALLINT,
SAMPLE_SECS REAL,
BUSY_SECS REAL,
HOST_CPU_SECS REAL,
HOST_DISK_READ_SECS REAL,
HOST_DISK_WRITE_SECS REAL,
HOST_FABRIC_SECS REAL,
SPU_CPU_SECS REAL,
SPU_DISK_READ_SECS REAL,
SPU_DISK_WRITE_SECS REAL,
SPU_FABRIC_SECS REAL,
GROUPNAME CHARACTER VARYING(255),
START_TIME TIMESTAMP,
END_TIME TIMESTAMP,
SPU_DATA_DISK_READ_SECS REAL,
SPU_DATA_DISK_WRITE_SECS REAL,
SPU_TEMP_DISK_READ_SECS REAL,
SPU_TEMP_DISK_WRITE_SECS REAL
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE QHISTDBUSER.NZ_HARDWARE_FAILURES ( -- Number of Columns = 6


HF_TIMESTAMP TIMESTAMP,
HF_HWTYPE CHARACTER VARYING(20),
HF_HWID INTEGER,
HF_SPAID SMALLINT,
HF_SPASLOT CHARACTER(2),
HF_EVENTSOURCE CHARACTER VARYING(20)
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE QHISTDBUSER.NZ_QUERY_HISTORY ( -- Number of Columns = 77


QH_SESSIONID INTEGER,
QH_PLANID INTEGER,
QH_CLIENTID INTEGER,
QH_CLIIPADDR CHARACTER VARYING(255),
QH_DATABASE CHARACTER VARYING(255),
QH_USER CHARACTER VARYING(255),
QH_SQL CHARACTER VARYING(63000),
QH_TSUBMIT TIMESTAMP,
QH_TSTART TIMESTAMP,
QH_TEND TIMESTAMP,
QH_PRIORITY INTEGER,
QH_PRITXT CHARACTER VARYING(255),
QH_ESTCOST BIGINT,
QH_ESTDISK BIGINT,
QH_ESTMEM BIGINT,
QH_SNIPPETS INTEGER,
QH_SNPTSDONE INTEGER,
QH_RESROWS BIGINT,
QH_RESBYTES BIGINT,
QH_CLIENT_USER_ID CHARACTER VARYING(255),
QH_CLIENT_APPLICATION_NAME CHARACTER VARYING(255),
QH_CLIENT_WORKSTATION_NAME CHARACTER VARYING(255),
QH_CLIENT_ACCOUNTING_STRING CHARACTER VARYING(255),
HOST_CPU_SECS REAL,
HOST_DISK_READ_SECS REAL,
HOST_DISK_WRITE_SECS REAL,
HOST_FABRIC_SECS REAL,
SPU_CPU_SECS REAL,
SPU_DISK_READ_SECS REAL,
SPU_DISK_WRITE_SECS REAL,
SPU_FABRIC_SECS REAL,
MAX_SPU_CPU_SECS REAL,
MAX_SPU_DISK_READ_SECS REAL,
MAX_SPU_DISK_WRITE_SECS REAL,
MAX_SPU_FABRIC_SECS REAL,
SQB BYTEINT,
FIT BYTEINT,
PLANNER_ESTIMATE_SECS REAL,
SQB_ESTIMATE_SECS REAL,
SPU_MEM_PEAK INTEGER,
HOST_MEM_PEAK INTEGER,
DOWNLOAD_RATE REAL,
WEIGHT REAL,
GK_WAIT_SECS REAL,
GRA_WAIT_SECS REAL,
SN_WAIT_SECS REAL,
EXECUTION_SECS REAL,
IDLE_SECS REAL,
ABORTED BYTEINT,
SPU_DATA_DISK_READ_SECS REAL,
SPU_DATA_DISK_WRITE_SECS REAL,
SPU_TEMP_DISK_READ_SECS REAL,
SPU_TEMP_DISK_WRITE_SECS REAL,
MAX_SPU_DATA_DISK_READ_SECS REAL,
MAX_SPU_DATA_DISK_WRITE_SECS REAL,
MAX_SPU_TEMP_DISK_READ_SECS REAL,
MAX_SPU_TEMP_DISK_WRITE_SECS REAL,
SPOOLED_MB REAL,
DOWNLOADED_MB REAL,
MAX_SPU_TEMP_DISK_PAGES_ALLOCATED INTEGER,
SUBMIT_TIME TIMESTAMP,
DONE_TIME TIMESTAMP,
PRIOR_PLAN INTEGER,
PLANS_FOLLOW BYTEINT,
DHJ BYTEINT,
SPU_MEM_ESTIMATE INTEGER,
HOST_MEM_ESTIMATE INTEGER,
PARSE_SECS REAL,
REWRITE_SECS REAL,
PLAN_CREATE_SECS REAL,
PREP_SECS REAL,
RECONSTITUTE_SECS REAL,
CACHE_SECS REAL,
SETUP_SECS REAL,
NULL_IO_SECS REAL,
GREED_SECS REAL,
JOB INTEGER
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE QHISTDBUSER.NZ_SYSUTIL_HISTORY ( -- Number of Columns = 18


ENTRY_TS BIGINT,
ENTRY TIMESTAMP,
HOST_CPU REAL,
HOST_DISK REAL,
HOST_FABRIC REAL,
HOST_MEMORY REAL,
SPU_CPU REAL,
SPU_DISK REAL,
SPU_FABRIC REAL,
SPU_MEMORY REAL,
MAX_SPU_CPU REAL,
MAX_SPU_DISK REAL,
MAX_SPU_FABRIC REAL,
MAX_SPU_MEMORY REAL,
SPU_TEMP_DISK REAL,
MAX_SPU_TEMP_DISK REAL,
SPU_TEMP_DISK_PAGES_ALLOCATED REAL,
MAX_SPU_TEMP_DISK_PAGES_ALLOCATED REAL
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE QHISTDBUSER.NZ_TABLE_SPACE_HISTORY ( -- Number of Columns = 9


OBJECT_TYPE CHARACTER VARYING(9),
TABLE_NAME CHARACTER VARYING(128),
DATABASE_NAME CHARACTER VARYING(128),
THE_DATE DATE,
BYTES_USED BIGINT,
BYTES_ALLOCATED BIGINT,
MAX_SPU_BYTES BIGINT,
MIN_SPU_BYTES BIGINT,
SKEW_MEASURE BYTEINT
) DISTRIBUTE ON RANDOM;
\echo -n .

\echo 'done(22 tables).'

-- Sequence Definitions

\echo -n 'Creating Sequences'


set enable_sequence_cachesize = 1;
CREATE SEQUENCE QHISTDBUSER."\$hist_seq" as int4 start with 1 increment by 1
minvalue 1 maxvalue 2147483647 no cycle cache 10000;
\echo -n .

\echo 'done(1 sequences).'


-- View Definitions

\echo -n 'Creating Views'


CREATE VIEW QHISTDBUSER."\$v_hist_column_access_stats" (
DBNAME,
SCHEMANAME,
TABLENAME,
COLUMNNAME,
REFS,
NUM_SELECTED,
NUM_UPDATED,
NUM_WHERE,
NUM_GROUPED,
NUM_HAVING,
NUM_ORDERED,
NUM_ALTERED,
NUM_GENSTATS
) as Not a view
\echo -n .

CREATE VIEW QHISTDBUSER."\$v_hist_incomplete_queries" (


NPSID,
NPSINSTANCEID,
OPID,
LOGENTRYID,
SESSIONID,
DBNAME,
QUERYID,
QUERY,
SUBMITTIME,
CLIENT_USER_ID,
CLIENT_APPLICATION_NAME,
CLIENT_WORKSTATION_NAME,
CLIENT_ACCOUNTING_STRING
) as Not a view
\echo -n .

CREATE VIEW QHISTDBUSER."\$v_hist_log_events" (


NPSID,
NPSINSTANCEID,
OPID,
SESSIONID,
LOGENTRYID,
TIME,
OP,
OP_TYPE,
CHECKSUM,
DETAILS,
DBID,
DBNAME,
USERID,
USERNAME,
CLIENT_TYPE
) as Not a view
\echo -n .

CREATE VIEW QHISTDBUSER."\$v_hist_queries" (


NPSID,
NPSINSTANCEID,
OPID,
LOGENTRYID,
SESSIONID,
DBNAME,
QUERYID,
QUERY,
SUBMITTIME,
FINISHTIME,
RUNTIME,
RUNTIME_SECONDS,
STATUS,
VERBOSE_STATUS,
CLIENT_USER_ID,
CLIENT_APPLICATION_NAME,
CLIENT_WORKSTATION_NAME,
CLIENT_ACCOUNTING_STRING,
QUEUETIME,
QUEUED_SECONDS,
PREPTIME,
PREP_SECONDS,
GRATIME,
GRA_SECONDS,
NUMPLANS,
NUMRESTARTS
) as Not a view
\echo -n .

CREATE VIEW QHISTDBUSER."\$v_hist_successful_queries" (


NPSID,
NPSINSTANCEID,
OPID,
LOGENTRYID,
SESSIONID,
DBNAME,
QUERYID,
QUERY,
SUBMITTIME,
FINISHTIME,
RUNTIME,
RUNTIME_SECONDS,
STATUS,
VERBOSE_STATUS,
CLIENT_USER_ID,
CLIENT_APPLICATION_NAME,
CLIENT_WORKSTATION_NAME,
CLIENT_ACCOUNTING_STRING,
QUEUETIME,
QUEUED_SECONDS,
PREPTIME,
PREP_SECONDS,
GRATIME,
GRA_SECONDS,
NUMPLANS,
NUMRESTARTS
) as Not a view
\echo -n .

CREATE VIEW QHISTDBUSER."\$v_hist_table_access_stats" (


DBNAME,
SCHEMANAME,
TABLENAME,
REFS,
NUM_SELECTED,
NUM_INSERTED,
NUM_DELETED,
NUM_UPDATED,
NUM_TRUNCATED,
NUM_DROPPED,
NUM_CREATED,
NUM_GENSTATS,
NUM_LOCKED,
NUM_ALTERED
) as Not a view
\echo -n .

CREATE VIEW QHISTDBUSER."\$v_hist_unsuccessful_queries" (


NPSID,
NPSINSTANCEID,
OPID,
LOGENTRYID,
SESSIONID,
DBNAME,
QUERYID,
QUERY,
SUBMITTIME,
FINISHTIME,
RUNTIME,
RUNTIME_SECONDS,
STATUS,
VERBOSE_STATUS,
CLIENT_USER_ID,
CLIENT_APPLICATION_NAME,
CLIENT_WORKSTATION_NAME,
CLIENT_ACCOUNTING_STRING,
QUEUETIME,
QUEUED_SECONDS,
PREPTIME,
PREP_SECONDS,
GRATIME,
GRA_SECONDS,
NUMPLANS,
NUMRESTARTS
) as Not a view
\echo -n .

CREATE VIEW QHISTDBUSER.NZ_QUERY_HISTORY_VIEW (


QH_SESSIONID,
QH_PLANID,
QH_CLIENTID,
QH_CLIIPADDR,
QH_DATABASE,
QH_USER,
QH_SQL,
QH_TSUBMIT,
QH_TSTART,
QH_TEND,
QH_PRIORITY,
QH_PRITXT,
QH_ESTCOST,
QH_ESTDISK,
QH_ESTMEM,
QH_SNIPPETS,
QH_SNPTSDONE,
QH_RESROWS,
QH_RESBYTES,
QH_CLIENT_USER_ID,
QH_CLIENT_APPLICATION_NAME,
QH_CLIENT_WORKSTATION_NAME,
QH_CLIENT_ACCOUNTING_STRING,
HOST_CPU_SECS,
HOST_DISK_READ_SECS,
HOST_DISK_WRITE_SECS,
HOST_FABRIC_SECS,
SPU_CPU_SECS,
SPU_DISK_READ_SECS,
SPU_DISK_WRITE_SECS,
SPU_FABRIC_SECS,
MAX_SPU_CPU_SECS,
MAX_SPU_DISK_READ_SECS,
MAX_SPU_DISK_WRITE_SECS,
MAX_SPU_FABRIC_SECS,
SQB,
FIT,
PLANNER_ESTIMATE_SECS,
SQB_ESTIMATE_SECS,
SPU_MEM_PEAK,
HOST_MEM_PEAK,
DOWNLOAD_RATE,
WEIGHT,
GK_WAIT_SECS,
GRA_WAIT_SECS,
SN_WAIT_SECS,
EXECUTION_SECS,
IDLE_SECS,
ABORTED,
SPU_DATA_DISK_READ_SECS,
SPU_DATA_DISK_WRITE_SECS,
SPU_TEMP_DISK_READ_SECS,
SPU_TEMP_DISK_WRITE_SECS,
MAX_SPU_DATA_DISK_READ_SECS,
MAX_SPU_DATA_DISK_WRITE_SECS,
MAX_SPU_TEMP_DISK_READ_SECS,
MAX_SPU_TEMP_DISK_WRITE_SECS,
SPOOLED_MB,
DOWNLOADED_MB,
MAX_SPU_TEMP_DISK_PAGES_ALLOCATED,
SUBMIT_TIME,
DONE_TIME,
PRIOR_PLAN,
PLANS_FOLLOW,
DHJ,
SPU_MEM_ESTIMATE,
HOST_MEM_ESTIMATE,
PARSE_SECS,
REWRITE_SECS,
PLAN_CREATE_SECS,
PREP_SECS,
RECONSTITUTE_SECS,
CACHE_SECS,
SETUP_SECS,
NULL_IO_SECS,
GREED_SECS,
JOB,
ESTIMATED_SECONDS,
QUEUED_SECONDS,
ELAPSED_SECONDS,
COMPLETED
) as SELECT NZ_QUERY_HISTORY.QH_SESSIONID, NZ_QUERY_HISTORY.QH_PLANID,
NZ_QUERY_HISTORY.QH_CLIENTID, NZ_QUERY_HISTORY.QH_CLIIPADDR,
NZ_QUERY_HISTORY.QH_DATABASE, NZ_QUERY_HISTORY.QH_USER, NZ_QUERY_HISTORY.QH_SQL,
NZ_QUERY_HISTORY.QH_TSUBMIT, NZ_QUERY_HISTORY.QH_TSTART, NZ_QUERY_HISTORY.QH_TEND,
NZ_QUERY_HISTORY.QH_PRIORITY, NZ_QUERY_HISTORY.QH_PRITXT,
NZ_QUERY_HISTORY.QH_ESTCOST, NZ_QUERY_HISTORY.QH_ESTDISK,
NZ_QUERY_HISTORY.QH_ESTMEM, NZ_QUERY_HISTORY.QH_SNIPPETS,
NZ_QUERY_HISTORY.QH_SNPTSDONE, NZ_QUERY_HISTORY.QH_RESROWS,
NZ_QUERY_HISTORY.QH_RESBYTES, NZ_QUERY_HISTORY.QH_CLIENT_USER_ID,
NZ_QUERY_HISTORY.QH_CLIENT_APPLICATION_NAME,
NZ_QUERY_HISTORY.QH_CLIENT_WORKSTATION_NAME,
NZ_QUERY_HISTORY.QH_CLIENT_ACCOUNTING_STRING, NZ_QUERY_HISTORY.HOST_CPU_SECS,
NZ_QUERY_HISTORY.HOST_DISK_READ_SECS, NZ_QUERY_HISTORY.HOST_DISK_WRITE_SECS,
NZ_QUERY_HISTORY.HOST_FABRIC_SECS, NZ_QUERY_HISTORY.SPU_CPU_SECS,
NZ_QUERY_HISTORY.SPU_DISK_READ_SECS, NZ_QUERY_HISTORY.SPU_DISK_WRITE_SECS,
NZ_QUERY_HISTORY.SPU_FABRIC_SECS, NZ_QUERY_HISTORY.MAX_SPU_CPU_SECS,
NZ_QUERY_HISTORY.MAX_SPU_DISK_READ_SECS, NZ_QUERY_HISTORY.MAX_SPU_DISK_WRITE_SECS,
NZ_QUERY_HISTORY.MAX_SPU_FABRIC_SECS, NZ_QUERY_HISTORY.SQB, NZ_QUERY_HISTORY.FIT,
NZ_QUERY_HISTORY.PLANNER_ESTIMATE_SECS, NZ_QUERY_HISTORY.SQB_ESTIMATE_SECS,
NZ_QUERY_HISTORY.SPU_MEM_PEAK, NZ_QUERY_HISTORY.HOST_MEM_PEAK,
NZ_QUERY_HISTORY.DOWNLOAD_RATE, NZ_QUERY_HISTORY.WEIGHT,
NZ_QUERY_HISTORY.GK_WAIT_SECS, NZ_QUERY_HISTORY.GRA_WAIT_SECS,
NZ_QUERY_HISTORY.SN_WAIT_SECS, NZ_QUERY_HISTORY.EXECUTION_SECS,
NZ_QUERY_HISTORY.IDLE_SECS, NZ_QUERY_HISTORY.ABORTED,
NZ_QUERY_HISTORY.SPU_DATA_DISK_READ_SECS,
NZ_QUERY_HISTORY.SPU_DATA_DISK_WRITE_SECS,
NZ_QUERY_HISTORY.SPU_TEMP_DISK_READ_SECS,
NZ_QUERY_HISTORY.SPU_TEMP_DISK_WRITE_SECS,
NZ_QUERY_HISTORY.MAX_SPU_DATA_DISK_READ_SECS,
NZ_QUERY_HISTORY.MAX_SPU_DATA_DISK_WRITE_SECS,
NZ_QUERY_HISTORY.MAX_SPU_TEMP_DISK_READ_SECS,
NZ_QUERY_HISTORY.MAX_SPU_TEMP_DISK_WRITE_SECS, NZ_QUERY_HISTORY.SPOOLED_MB,
NZ_QUERY_HISTORY.DOWNLOADED_MB, NZ_QUERY_HISTORY.MAX_SPU_TEMP_DISK_PAGES_ALLOCATED,
NZ_QUERY_HISTORY.SUBMIT_TIME, NZ_QUERY_HISTORY.DONE_TIME,
NZ_QUERY_HISTORY.PRIOR_PLAN, NZ_QUERY_HISTORY.PLANS_FOLLOW, NZ_QUERY_HISTORY.DHJ,
NZ_QUERY_HISTORY.SPU_MEM_ESTIMATE, NZ_QUERY_HISTORY.HOST_MEM_ESTIMATE,
NZ_QUERY_HISTORY.PARSE_SECS, NZ_QUERY_HISTORY.REWRITE_SECS,
NZ_QUERY_HISTORY.PLAN_CREATE_SECS, NZ_QUERY_HISTORY.PREP_SECS,
NZ_QUERY_HISTORY.RECONSTITUTE_SECS, NZ_QUERY_HISTORY.CACHE_SECS,
NZ_QUERY_HISTORY.SETUP_SECS, NZ_QUERY_HISTORY.NULL_IO_SECS,
NZ_QUERY_HISTORY.GREED_SECS, NZ_QUERY_HISTORY."JOB",
(("NUMERIC"(NZ_QUERY_HISTORY.QH_ESTCOST) / '1000'::"NUMERIC"))::NUMERIC(19,3) AS
ESTIMATED_SECONDS, ((((DATE_PART('DAYS'::"VARCHAR", (NZ_QUERY_HISTORY.QH_TSTART -
NZ_QUERY_HISTORY.QH_TSUBMIT)) * '86400'::INT8) + (DATE_PART('HOURS'::"VARCHAR",
(NZ_QUERY_HISTORY.QH_TSTART - NZ_QUERY_HISTORY.QH_TSUBMIT)) * '3600'::INT8)) +
(DATE_PART('MINUTES'::"VARCHAR", (NZ_QUERY_HISTORY.QH_TSTART -
NZ_QUERY_HISTORY.QH_TSUBMIT)) * '60'::INT8)) + DATE_PART('SECONDS'::"VARCHAR",
(NZ_QUERY_HISTORY.QH_TSTART - NZ_QUERY_HISTORY.QH_TSUBMIT))) AS QUEUED_SECONDS,
((((DATE_PART('DAYS'::"VARCHAR", (NZ_QUERY_HISTORY.QH_TEND -
NZ_QUERY_HISTORY.QH_TSTART)) * '86400'::INT8) + (DATE_PART('HOURS'::"VARCHAR",
(NZ_QUERY_HISTORY.QH_TEND - NZ_QUERY_HISTORY.QH_TSTART)) * '3600'::INT8)) +
(DATE_PART('MINUTES'::"VARCHAR", (NZ_QUERY_HISTORY.QH_TEND -
NZ_QUERY_HISTORY.QH_TSTART)) * '60'::INT8)) + DATE_PART('SECONDS'::"VARCHAR",
(NZ_QUERY_HISTORY.QH_TEND - NZ_QUERY_HISTORY.QH_TSTART))) AS ELAPSED_SECONDS, CASE
WHEN ((NZ_QUERY_HISTORY.QH_SNIPPETS = NZ_QUERY_HISTORY.QH_SNPTSDONE) OR
(NZ_QUERY_HISTORY.QH_RESROWS > 0)) THEN 't'::BOOL ELSE 'f'::BOOL END AS COMPLETED
FROM QHISTDBUSER.NZ_QUERY_HISTORY;
\echo -n .

\echo 'done(8 views).'

-- Load Statistics.
-- Template of stats output, fields are separated by TABs.
-- relname, relrefs, reltuples, relpages, attnum, attname, datatype, attdispersion,
staop, stanullfrac, stacommonfrac, starecent, stacommonval, staloval, stahival
--
\echo -n 'Updating Statistics'

------------- QHISTDBUSER.\$hist_column_access_3 -------------

-- QHISTDBUSER.\$hist_column_access_3 t 0 -701205389 2851465 1


NPSID INTEGER 1 97 0 0 257 1
1 0 0 796034 795996
\echo -n .

UPDATE _t_class
SET
reltuples = -701205389,
relrefs = 0,
relpages = 2851465
WHERE
oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '1 ', 0, 0
);

-- QHISTDBUSER.\$hist_column_access_3 t 0 -701205389 2851465 2


NPSINSTANCEID INTEGER 0.0588235 97 0 0 257 65
82 0 0 796034 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0588235 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'65 ', '82 ', 0, 0
);

-- QHISTDBUSER.\$hist_column_access_3 t 0 -701205389 2851465 3


OPID BIGINT 1.28108e-07 412 0 0 257 881
280110690 0 0 796034 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.28108e-07 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'881 ', '280110690 ', 0, 0
);

-- QHISTDBUSER.\$hist_column_access_3 t 0 -701205389 2851465 4


LOGENTRYID BIGINT 1.28108e-07 412 0 0 257 584
749646876 0 0 796034 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.28108e-07 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'584 ', '749646876 ', 0, 0
);

-- QHISTDBUSER.\$hist_column_access_3 t 0 -701205389 2851465 5


SEQID INTEGER 9.6965e-05 97 0 0 257 0
10312 0 0 796034 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (9.6965e-05 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
5, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '10312 ', 0, 0
);

-- QHISTDBUSER.\$hist_column_access_3 t 0 -701205389 2851465 6


SESSIONID BIGINT 6.84228e-08 412 0 0 257 16025
14631034 0 0 796034 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (6.84228e-08 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
6, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'16025 ', '14631034 ', 0, 0
);

-- QHISTDBUSER.\$hist_column_access_3 t 0 -701205389 2851465 7


DBID INTEGER 0.015625 97 0 0 257 1
63347561 0 0 796034 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.015625 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
7, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '63347561 ', 0, 0
);

-- QHISTDBUSER.\$hist_column_access_3 t 0 -701205389 2851465 8


DBNAME NATIONAL CHARACTER VARYING(128) 0.0163934 1022 0 0
256 HISTDB
SYSTEM
31 50185399352 796034 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0163934 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
8, 1022, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'HISTDB
', 'SYSTEM
', 31, 50185399352
);

-- QHISTDBUSER.\$hist_column_access_3 t 0 -701205389 2851465 9


SCHEMAID INTEGER 0.00194175 97 0 0 257 4
108140904 0 0 796034 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00194175 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
9, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'4 ', '108140904 ', 0, 0
);

-- QHISTDBUSER.\$hist_column_access_3 t 0 -701205389 2851465 10


SCHEMANAME NATIONAL CHARACTER VARYING(128) 0.00377358 1022 0 0
256 ADMBOEKH
WDWHLPF
36 67734494905 796034 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00377358 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
10, 1022, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'ADMBOEKH
', 'WDWHLPF
', 36, 67734494905
);

-- QHISTDBUSER.\$hist_column_access_3 t 0 -701205389 2851465 11


TABLEID INTEGER 2.92021e-07 97 0 0 257 1215
128431286 0 0 796034 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (2.92021e-07 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
11, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1215 ', '128431286 ', 0, 0
);

-- QHISTDBUSER.\$hist_column_access_3 t 0 -701205389 2851465 12


TABLENAME NATIONAL CHARACTER VARYING(128) 2.97135e-07 1022 0 0
256 AAA_HIERARCHYSTEP1
testboekh
125 96434313035 796034 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (2.97135e-07 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
12, 1022, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'AAA_HIERARCHYSTEP1
', 'testboekh
', 125, 96434313035
);

-- QHISTDBUSER.\$hist_column_access_3 t 0 -701205389 2851465 13


COLUMNID INTEGER 0.00340136 97 0 0 257 -12
294 0 0 796034 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00340136 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
13, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'-12 ', '294 ', 0, 0
);

-- QHISTDBUSER.\$hist_column_access_3 t 0 -701205389 2851465 14


COLUMNNAME NATIONAL CHARACTER VARYING(128) 5.06868e-05 1022 0 0
256 010
ÇONTRACT_LAST_KNOWN_MILEAGE_DA
113 67319635812 796034 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (5.06868e-05 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
14, 1022, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'010
', 'ÇONTRACT_LAST_KNOWN_MILEAGE_DA
', 113, 67319635812
);

-- QHISTDBUSER.\$hist_column_access_3 t 0 -701205389 2851465 15


USAGE INTEGER 0.0526316 97 0 0 257 1
64 0 0 796034 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0526316 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_column_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
15, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '64 ', 0, 0
);

------------- QHISTDBUSER.\$hist_failed_authentication_3 -------------

-- QHISTDBUSER.\$hist_failed_authentication_3 t 0 11981 53 1 NPSID


INTEGER 1 97 0 0 1 1
1 0 0 796006 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 11981,
relrefs = 0,
relpages = 53
WHERE
oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '1', '',
'1 ', '1 ', 0, 0
);

-- QHISTDBUSER.\$hist_failed_authentication_3 t 0 11981 53 2
NPSINSTANCEID INTEGER 0.111111 97 0 0 1 65
82 0 0 796006 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '1', '',
'65 ', '82 ', 0, 0
);

-- QHISTDBUSER.\$hist_failed_authentication_3 t 0 11981 53 3
LOGENTRYID BIGINT 8.34934e-05 412 0 0 1 3953
749554976 0 0 796006 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (8.34934e-05 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '1', '',
'3953 ', '749554976 ', 0, 0
);

-- QHISTDBUSER.\$hist_failed_authentication_3 t 0 11981 53 4
CLIENTIP CHARACTER(16) 0.0147059 1058 0 0 0
10.0.139.120
127.0.0.1
0 0 796006 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0147059 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 1058, (CAST(0 as float)),
(CAST(0 as float)), '0', '',
'10.0.139.120
', '127.0.0.1
', 0, 0
);

-- QHISTDBUSER.\$hist_failed_authentication_3 t 0 11981 53 5
SESSIONUSERNAME NATIONAL CHARACTER VARYING(128) 0.0212766 1022 0
0 0 AAASAP_BW_SERVICE
VESSP
20 188316 796006 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0212766 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
5, 1022, (CAST(0 as float)),
(CAST(0 as float)), '0', '',
'AAASAP_BW_SERVICE
', 'VESSP
', 20, 188316
);

-- QHISTDBUSER.\$hist_failed_authentication_3 t 0 11981 53 6 TIME


TIMESTAMP 8.49618e-05 1322 0 0 1 2019-10-01
00:30:06.949331
2022-07-08 11:44:11.605208
0 0 796006 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (8.49618e-05 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
6, 1322, (CAST(0 as float)),
(CAST(0 as float)), '1', '',
'2019-10-01 00:30:06.949331
', '2022-07-08 11:44:11.605208
', 0, 0
);

-- QHISTDBUSER.\$hist_failed_authentication_3 t 0 11981 53 7
FAILURETYPE INTEGER 1 97 0 0 1 1
1 0 0 796006 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
7, 97, (CAST(0 as float)),
(CAST(0 as float)), '1', '',
'1 ', '1 ', 0, 0
);

-- QHISTDBUSER.\$hist_failed_authentication_3 t 0 11981 53 8
FAILURE CHARACTER VARYING(512) 1 1066 0 0 0
Invalid username or password provided.
Invalid username or password provided.
40 479080 796006 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
8, 1066, (CAST(0 as float)),
(CAST(0 as float)), '0', '',
'Invalid username or password provided.
', 'Invalid username or password provided.
', 40, 479080
);

-- QHISTDBUSER.\$hist_failed_authentication_3 t 0 11981 53 9
TZOFFSET INTEGER 0.5 97 0 0 1 0
60 0 0 796006 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_failed_authentication_3'
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
9, 97, (CAST(0 as float)),
(CAST(0 as float)), '1', '',
'0 ', '60 ', 0, 0
);

------------- QHISTDBUSER.\$hist_log_entry_3 -------------

-- QHISTDBUSER.\$hist_log_entry_3 t 0 1306130085 398542 1 NPSID


INTEGER 1 97 0 0 257 1
1 0 0 796002 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 1306130085,
relrefs = 0,
relpages = 398542
WHERE
oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '1 ', 0, 0
);

-- QHISTDBUSER.\$hist_log_entry_3 t 0 1306130085 398542 2


NPSINSTANCEID INTEGER 0.0555556 97 0 0 257 65
82 0 0 796002 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0555556 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'65 ', '82 ', 0, 0
);

-- QHISTDBUSER.\$hist_log_entry_3 t 0 1306130085 398542 3


LOGENTRYID BIGINT 4.39454e-08 412 0 0 257 1
749646879 0 0 796002 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (4.39454e-08 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '749646879 ', 0, 0
);

-- QHISTDBUSER.\$hist_log_entry_3 t 0 1306130085 398542 4


SESSIONID BIGINT 6.83479e-08 412 0 0 257 0
14631035 0 0 796002 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (6.83479e-08 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '14631035 ', 0, 0
);

-- QHISTDBUSER.\$hist_log_entry_3 t 0 1306130085 398542 5 OP


INTEGER 0.142857 97 0 0 257 1
7 0 0 796002 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
5, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '7 ', 0, 0
);

-- QHISTDBUSER.\$hist_log_entry_3 t 0 1306130085 398542 6 TIME


TIMESTAMP 4.32783e-08 1322 0 0 257 2019-10-01
00:00:01.344644
2022-07-08 11:50:15.141453
0 0 796002 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (4.32783e-08 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
6, 1322, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2019-10-01 00:00:01.344644
', '2022-07-08 11:50:15.141453
', 0, 0
);

-- QHISTDBUSER.\$hist_log_entry_3 t 0 1306130085 398542 7


TZOFFSET INTEGER 0.5 97 0 0 257 0
60 0 0 796002 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_log_entry_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
7, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '60 ', 0, 0
);

------------- QHISTDBUSER.\$hist_nps_3 -------------

-- QHISTDBUSER.\$hist_nps_3 t 0 1 1 1 NPSID INTEGER 1


97 0 0 85 1 1
0 0 796001 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 1,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = '\$hist_nps_3' and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_nps_3' and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_nps_3' and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_nps_3' and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1 ', '1 ', 0, 0
);

-- QHISTDBUSER.\$hist_nps_3 t 0 1 1 2 UUID CHARACTER(36)


1 1058 0 0 85 919bd750-8c75-4ef4-b653-389c6ffb6eb2
919bd750-8c75-4ef4-b653-389c6ffb6eb2
0 0 796001 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_nps_3' and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_nps_3' and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_nps_3' and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'919bd750-8c75-4ef4-b653-389c6ffb6eb2
', '919bd750-8c75-4ef4-b653-389c6ffb6eb2
', 0, 0
);

-- QHISTDBUSER.\$hist_nps_3 t 0 1 1 3 SERVERHOST CHARACTER


VARYING(256) 1 1066 0 0 85 lpgpnznd4001
lpgpnznd4001
14 14 796001 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_nps_3' and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_nps_3' and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_nps_3' and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'lpgpnznd4001
', 'lpgpnznd4001
', 14, 14
);

-- QHISTDBUSER.\$hist_nps_3 t 0 1 1 4 SERVERIP
CHARACTER(16) 1 1058 0 0 85 10.5.26.133
10.5.26.133
0 0 796001 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_nps_3' and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_nps_3' and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_nps_3' and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'10.5.26.133
', '10.5.26.133
', 0, 0
);

-- QHISTDBUSER.\$hist_nps_3 t 0 1 1 5 NPSINSTANCEID
INTEGER 1 97 0 0 85 51
51 0 0 796001 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_nps_3' and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_nps_3' and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_nps_3' and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
5, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'51 ', '51 ', 0, 0
);

------------- QHISTDBUSER.\$hist_plan_epilog_3 -------------

-- QHISTDBUSER.\$hist_plan_epilog_3 t 0 150550947 82695 1 NPSID


INTEGER 1 97 0 0 257 1
1 0 0 796042 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 150550947,
relrefs = 0,
relpages = 82695
WHERE
oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '1 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_epilog_3 t 0 150550947 82695 2


NPSINSTANCEID INTEGER 0.0588235 97 0 0 257 65
82 0 0 796042 795996
UPDATE _t_attribute
SET
attdispersion = (CAST (0.0588235 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'65 ', '82 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_epilog_3 t 0 150550947 82695 3 OPID BIGINT


5.53029e-08 412 0 0 257 1751
280110690 0 0 796042 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (5.53029e-08 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1751 ', '280110690 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_epilog_3 t 0 150550947 82695 4 LOGENTRYID


BIGINT 5.56397e-08 412 0 0 257 2437
749646878 0 0 796042 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (5.56397e-08 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2437 ', '749646878 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_epilog_3 t 0 150550947 82695 5 SESSIONID


BIGINT 6.84228e-08 412 0 0 257 16025
14631034 0 0 796042 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (6.84228e-08 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
5, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'16025 ', '14631034 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_epilog_3 t 0 150550947 82695 6 PLANID


INTEGER 5.62479e-08 97 0 0 257 1
70725163 0 0 796042 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (5.62479e-08 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
6, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '70725163 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_epilog_3 t 0 150550947 82695 7 ENDTIME


TIMESTAMP 5.56204e-08 1322 0 0 257 2019-10-01
00:00:01.390198
2022-07-08 11:50:14.960901
0 0 796042 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (5.56204e-08 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
7, 1322, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2019-10-01 00:00:01.390198
', '2022-07-08 11:50:14.960901
', 0, 0
);

-- QHISTDBUSER.\$hist_plan_epilog_3 t 0 150550947 82695 8 DONESNIPPETS


INTEGER 0.0060241 97 0 0 257 0
355 0 0 796042 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0060241 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
8, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '355 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_epilog_3 t 0 150550947 82695 9 RESULTROWS


BIGINT 0.00016787 412 0 0 257 0
899983881 0 0 796042 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00016787 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
9, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '899983881 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_epilog_3 t 0 150550947 82695 10 RESULTBYTES


BIGINT 5.7617e-05 412 0 0 257 0
636907595392 0 0 796042 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (5.7617e-05 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
10, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '636907595392 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_epilog_3 t 0 150550947 82695 11 STATUS


INTEGER 0.0769231 97 0 0 257 0
10032 0 0 796042 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0769231 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
11, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '10032 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_epilog_3 t 0 150550947 82695 12 TZOFFSET


INTEGER 0.5 97 0 0 257 0
60 0 0 796042 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
12, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '60 ', 0, 0
);

------------- QHISTDBUSER.\$hist_plan_prolog_3 -------------

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 1 NPSID


INTEGER 1 97 0 0 257 1
1 0 0 796038 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 150550947,
relrefs = 0,
relpages = 157350
WHERE
oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '1 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 2


NPSINSTANCEID INTEGER 0.0588235 97 0 0 257 65
82 0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0588235 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'65 ', '82 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 3 OPID


BIGINT 1.86239e-07 412 0 0 257 1751
280110690 0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.86239e-07 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1751 ', '280110690 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 4


LOGENTRYID BIGINT 1.85579e-07 412 0 0 257 2436
749646877 0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.85579e-07 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2436 ', '749646877 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 5


SESSIONID BIGINT 9.32974e-08 412 0 0 257 16025
14631034 0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (9.32974e-08 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
5, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'16025 ', '14631034 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 6 PLANID


INTEGER 1.88125e-07 97 0 0 257 1
70725163 0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.88125e-07 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
6, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '70725163 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 7 XID


BIGINT 8.72078e-08 412 0 0 257 103545636
177903268 0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (8.72078e-08 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
7, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'103545636 ', '177903268 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 8


GKPRIORITY INTEGER 1 97 0 0 257 3
3 0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
8, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'3 ', '3 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 9


SUBMITTIME TIMESTAMP 1.84825e-07 1322 0 0 257 2019-10-01
00:00:01.37521
2022-07-08 11:50:11.720169
0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.84825e-07 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
9, 1322, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2019-10-01 00:00:01.37521
', '2022-07-08 11:50:11.720169
', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 10


QUEUETIME TIMESTAMP 1 1322 1 0 257 2000-01-01
00:00:00
2000-01-01 00:00:00
0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
10, 1322, (CAST(1 as float)),
(CAST(0 as float)), '257', '',
'2000-01-01 00:00:00
', '2000-01-01 00:00:00
', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 11


PREPTIME TIMESTAMP 1.84687e-07 1322 0 0 257 2019-10-01
00:00:01.379053
2022-07-08 11:50:11.834027
0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.84687e-07 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
11, 1322, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2019-10-01 00:00:01.379053
', '2022-07-08 11:50:11.834027
', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 12


GRATIME TIMESTAMP 1.84657e-07 1322 0 0 257 2019-10-01
00:00:01.379785
2022-07-08 11:50:11.838663
0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.84657e-07 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
12, 1322, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2019-10-01 00:00:01.379785
', '2022-07-08 11:50:11.838663
', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 13


STARTTIME TIMESTAMP 1.84963e-07 1322 0 0 257 2019-10-01
00:00:01.379861
2022-07-08 11:50:11.838692
0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.84963e-07 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
13, 1322, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2019-10-01 00:00:01.379861
', '2022-07-08 11:50:11.838692
', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 14


ISMAINPLAN BOOLEAN 0.5 58 0 0 257 f
t
0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
14, 58, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'f
', 't
', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 15


ESTIMATEDCOST DOUBLE PRECISION 1.9234e-06 672 0 0 257
-250.727 4.25e+16
0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.9234e-06 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
15, 672, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'-250.727 ', '4.25e+16
', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 16


ESTIMATEDDISK BIGINT 8.49618e-06 412 0 0 257 0
72944726426 0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (8.49618e-06 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
16, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '72944726426 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 17


ESTIMATEDMEM BIGINT 5.52883e-05 412 0 0 257 0
2834686160178693898 0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (5.52883e-05 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
17, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '2834686160178693898 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 18


TOTALSNIPPETS BIGINT 0.00606061 412 0 0 257 0
355 0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00606061 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
18, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '355 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 19


SIGNATURE BIGINT 7.47743e-07 412 0 0 257 6303
4294966916 0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (7.47743e-07 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
19, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'6303 ', '4294966916 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 20


QCRESTART INTEGER 1 97 0 0 257 0
0 0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
20, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '0 ', 0, 0
);

-- QHISTDBUSER.\$hist_plan_prolog_3 t 0 150550947 157350 21


TZOFFSET INTEGER 0.5 97 0 0 257 0
60 0 0 796038 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_plan_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
21, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '60 ', 0, 0
);

------------- QHISTDBUSER.\$hist_query_epilog_3 -------------

-- QHISTDBUSER.\$hist_query_epilog_3 t 0 464990285 198634 1


NPSID INTEGER 1 97 0 0 257 1
1 0 0 796022 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 464990285,
relrefs = 0,
relpages = 198634
WHERE
oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '1 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_epilog_3 t 0 464990285 198634 2


NPSINSTANCEID INTEGER 0.0555556 97 0 0 257 65
82 0 0 796022 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0555556 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'65 ', '82 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_epilog_3 t 0 464990285 198634 3


OPID BIGINT 3.88873e-08 412 0 0 257 580
280110690 0 0 796022 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (3.88873e-08 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'580 ', '280110690 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_epilog_3 t 0 464990285 198634 4


LOGENTRYID BIGINT 3.80979e-08 412 0 0 257 3
749646876 0 0 796022 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (3.80979e-08 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'3 ', '749646876 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_epilog_3 t 0 464990285 198634 5


SESSIONID BIGINT 6.84228e-08 412 0 0 257 16025
14631034 0 0 796022 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (6.84228e-08 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
5, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'16025 ', '14631034 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_epilog_3 t 0 464990285 198634 6


FINISHTIME TIMESTAMP 3.77162e-08 1322 0 0 257 2019-10-01
00:00:01.36342
2022-07-08 11:50:15.042866
0 0 796022 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (3.77162e-08 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
6, 1322, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2019-10-01 00:00:01.36342
', '2022-07-08 11:50:15.042866
', 0, 0
);

-- QHISTDBUSER.\$hist_query_epilog_3 t 0 464990285 198634 7


RESULTROWS BIGINT 2.11366e-06 412 0 0 257 0
2398261475 0 0 796022 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (2.11366e-06 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
7, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '2398261475 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_epilog_3 t 0 464990285 198634 8


STATUS INTEGER 0.166667 97 0 0 257 -7
0 0 0 796022 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.166667 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
8, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'-7 ', '0 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_epilog_3 t 0 464990285 198634 9


TZOFFSET INTEGER 0.5 97 0 0 257 0
60 0 0 796022 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
9, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '60 ', 0, 0
);

------------- QHISTDBUSER.\$hist_query_overflow_3 -------------

-- QHISTDBUSER.\$hist_query_overflow_3 t 0 42199 17 1 NPSID


INTEGER 1 97 0 0 1 1
1 0 0 796026 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 42199,
relrefs = 0,
relpages = 17
WHERE
oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '1', '',
'1 ', '1 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_overflow_3 t 0 42199 17 2
NPSINSTANCEID INTEGER 0.0909091 97 0 0 1 65
82 0 0 796026 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0909091 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '1', '',
'65 ', '82 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_overflow_3 t 0 42199 17 3 OPID BIGINT


3.35796e-05 412 0 0 1 2841
280046198 0 0 796026 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (3.35796e-05 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '1', '',
'2841 ', '280046198 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_overflow_3 t 0 42199 17 4 LOGENTRYID


BIGINT 3.35728e-05 412 0 0 1 4806
749505881 0 0 796026 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (3.35728e-05 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '1', '',
'4806 ', '749505881 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_overflow_3 t 0 42199 17 5 SESSIONID


BIGINT 3.76364e-05 412 0 0 1 16237
14614250 0 0 796026 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (3.76364e-05 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
5, 412, (CAST(0 as float)),
(CAST(0 as float)), '1', '',
'16237 ', '14614250 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_overflow_3 t 0 42199 17 6 SEQUENCEID


INTEGER 0.030303 97 0 0 1 0
32 0 0 796026 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.030303 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
6, 97, (CAST(0 as float)),
(CAST(0 as float)), '1', '',
'0 ', '32 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_overflow_3 t 0 42199 17 7 NEXT


INTEGER 0.030303 97 0 0 1 -1
32 0 0 796026 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.030303 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_overflow_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
7, 97, (CAST(0 as float)),
(CAST(0 as float)), '1', '',
'-1 ', '32 ', 0, 0
);

------------- QHISTDBUSER.\$hist_query_prolog_3 -------------

-- QHISTDBUSER.\$hist_query_prolog_3 t 0 464991671 723596 1


NPSID INTEGER 1 97 0 0 257 1
1 0 0 796018 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 464991671,
relrefs = 0,
relpages = 723596
WHERE
oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '1 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_prolog_3 t 0 464991671 723596 2


NPSINSTANCEID INTEGER 0.0555556 97 0 0 257 65
82 0 0 796018 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0555556 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'65 ', '82 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_prolog_3 t 0 464991671 723596 3


OPID BIGINT 1.85437e-07 412 0 0 257 580
280110690 0 0 796018 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.85437e-07 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'580 ', '280110690 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_prolog_3 t 0 464991671 723596 4


LOGENTRYID BIGINT 1.85003e-07 412 0 0 257 2
749646875 0 0 796018 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.85003e-07 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2 ', '749646875 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_prolog_3 t 0 464991671 723596 5


SESSIONID BIGINT 1.11886e-07 412 0 0 257 16025
14631034 0 0 796018 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.11886e-07 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
5, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'16025 ', '14631034 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_prolog_3 t 0 464991671 723596 6


PARENTOPID BIGINT 1 412 1 0 257 0
0 0 0 796018 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
6, 412, (CAST(1 as float)),
(CAST(0 as float)), '257', '',
'0 ', '0 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_prolog_3 t 0 464991671 723596 7


USERID BIGINT 0.0153846 412 0 0 257 500
747 0 0 796018 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0153846 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
7, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'500 ', '747 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_prolog_3 t 0 464991671 723596 8


USERNAME NATIONAL CHARACTER VARYING(128) 0.0153846 1022 0 0
256 ADMBEUGA
WARDS
34 4598168402 796018 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0153846 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
8, 1022, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'ADMBEUGA
', 'WARDS
', 34, 4598168402
);

-- QHISTDBUSER.\$hist_query_prolog_3 t 0 464991671 723596 9


SUBMITTIME TIMESTAMP 1.84889e-07 1322 0 0 257 2019-10-01
00:00:01.363279
2022-07-08 11:50:15.141453
0 0 796018 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.84889e-07 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
9, 1322, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2019-10-01 00:00:01.363279
', '2022-07-08 11:50:15.141453
', 0, 0
);

-- QHISTDBUSER.\$hist_query_prolog_3 t 0 464991671 723596 10


CHECKSUM CHARACTER(32) 7.8347e-08 1058 0 0 256
000000448eaed5d1aeb43ac3262b34d0
ffffffe119f4a2715342b4fc031135f9
0 0 796018 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (7.8347e-08 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
10, 1058, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'000000448eaed5d1aeb43ac3262b34d0
', 'ffffffe119f4a2715342b4fc031135f9
', 0, 0
);

-- QHISTDBUSER.\$hist_query_prolog_3 t 0 464991671 723596 12


TZOFFSET INTEGER 0.5 97 0 0 257 0
60 0 0 796018 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
12, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '60 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_prolog_3 t 0 464991671 723596 13


DBID BIGINT 0.015625 412 0 0 257 1
63347561 0 0 796018 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.015625 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
13, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '63347561 ', 0, 0
);
-- QHISTDBUSER.\$hist_query_prolog_3 t 0 464991671 723596 14
DBNAME NATIONAL CHARACTER VARYING(128) 0.0163934 1022 0 0
256 HISTDB
SYSTEM
31 6028854135 796018 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0163934 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
14, 1022, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'HISTDB
', 'SYSTEM
', 31, 6028854135
);
-- QHISTDBUSER.\$hist_query_prolog_3 t 0 464991671 723596 15
SCHEMAID BIGINT 0.00194932 412 0 0 257 6
108140904 0 0 796018 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00194932 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
15, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'6 ', '108140904 ', 0, 0
);

-- QHISTDBUSER.\$hist_query_prolog_3 t 0 464991671 723596 16


SCHEMANAME NATIONAL CHARACTER VARYING(128) 0.00364964 1022 0 0
256 ADMBEUGA
WDWHLPF
36 6334694545 796018 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00364964 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
16, 1022, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'ADMBEUGA
', 'WDWHLPF
', 36, 6334694545
);
-- QHISTDBUSER.\$hist_query_prolog_3 t 0 464991671 723596 17
CLIENT_USER_ID NATIONAL CHARACTER VARYING(512) 1 1022 0 0
256

2 929833808 796018 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
17, 1022, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'
', '
', 2, 929833808
);
-- QHISTDBUSER.\$hist_query_prolog_3 t 0 464991671 723596 18
CLIENT_APPLICATION_NAME NATIONAL CHARACTER VARYING(512) 0.166667 1022
0 0 256
DataGrip 2019.1.4
43 929839560 796018 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.166667 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
18, 1022, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'
', 'DataGrip 2019.1.4
', 43, 929839560
);
-- QHISTDBUSER.\$hist_query_prolog_3 t 0 464991671 723596 19
CLIENT_WORKSTATION_NAME NATIONAL CHARACTER VARYING(512) 1 1022 0
0 256

2 929833808 796018 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
19, 1022, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'
', '
', 2, 929833808
);

-- QHISTDBUSER.\$hist_query_prolog_3 t 0 464991671 723596 20


CLIENT_ACCOUNTING_STRING NATIONAL CHARACTER VARYING(512) 1 1022
0 0 256

2 929833808 796018 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_query_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
20, 1022, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'
', '
', 2, 929833808
);

------------- QHISTDBUSER.\$hist_service_3 -------------

-- QHISTDBUSER.\$hist_service_3 t 0 0 10 1 NPSID INTEGER


0 97 0 0 16554
0 0 796050 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 10
WHERE
oid = (
select objid from _t_object where objname = '\$hist_service_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_service_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_service_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_service_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- QHISTDBUSER.\$hist_service_3 t 0 0 10 2 NPSINSTANCEID
INTEGER 0 97 0 0 16554
0 0 796050 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_service_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_service_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_service_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- QHISTDBUSER.\$hist_service_3 t 0 0 10 3 LOGENTRYID BIGINT


0 412 0 0 16554
0 0 796050 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_service_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_service_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_service_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- QHISTDBUSER.\$hist_service_3 t 0 0 10 4 SESSIONID BIGINT


0 412 0 0 16554
0 0 796050 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_service_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_service_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_service_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- QHISTDBUSER.\$hist_service_3 t 0 0 10 5 SERVICETYPE
INTEGER 0 97 0 0 16554
0 0 796050 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_service_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_service_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_service_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
5, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- QHISTDBUSER.\$hist_service_3 t 0 0 10 6 SERVICE
CHARACTER VARYING(512) 0 1066 0 0 16554

0 0 796050 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_service_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_service_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_service_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
6, 1066, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- QHISTDBUSER.\$hist_session_epilog_3 -------------

-- QHISTDBUSER.\$hist_session_epilog_3 t 0 37517041 10302 1 NPSID


INTEGER 1 97 0 0 257 1
1 0 0 796014 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 37517041,
relrefs = 0,
relpages = 10302
WHERE
oid = (
select objid from _t_object where objname = '\$hist_session_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '1 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_epilog_3 t 0 37517041 10302 2


NPSINSTANCEID INTEGER 0.0555556 97 0 0 257 65
82 0 0 796014 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0555556 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'65 ', '82 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_epilog_3 t 0 37517041 10302 3


LOGENTRYID BIGINT 4.83688e-08 412 0 0 257 2
749646879 0 0 796014 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (4.83688e-08 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2 ', '749646879 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_epilog_3 t 0 37517041 10302 4


SESSIONID BIGINT 6.84228e-08 412 0 0 257 16025
14631035 0 0 796014 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (6.84228e-08 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'16025 ', '14631035 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_epilog_3 t 0 37517041 10302 5


ENDTIME TIMESTAMP 4.86976e-08 1322 0 0 257 2019-10-01
00:00:01.365015
2022-07-08 11:50:14.98043
0 0 796014 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (4.86976e-08 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
5, 1322, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2019-10-01 00:00:01.365015
', '2022-07-08 11:50:14.98043
', 0, 0
);

-- QHISTDBUSER.\$hist_session_epilog_3 t 0 37517041 10302 6


TZOFFSET INTEGER 0.5 97 0 0 257 0
60 0 0 796014 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_epilog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
6, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '60 ', 0, 0
);

------------- QHISTDBUSER.\$hist_session_prolog_3 -------------

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 1


NPSID INTEGER 1 97 0 0 257 1
1 0 0 796010 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 37517213,
relrefs = 0,
relpages = 129342
WHERE
oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '1 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 2


NPSINSTANCEID INTEGER 0.0555556 97 0 0 257 65
82 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0555556 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'65 ', '82 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 3


LOGENTRYID BIGINT 1.9985e-07 412 0 0 257 1
749646860 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.9985e-07 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '749646860 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 4


SESSIONID BIGINT 2.01524e-07 412 0 0 257 16059
14631035 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (2.01524e-07 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'16059 ', '14631035 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 5


PID INTEGER 3.09167e-05 97 0 0 257 330
32767 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (3.09167e-05 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
5, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'330 ', '32767 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 6


CONNECTTIME TIMESTAMP 2.07292e-07 1322 0 0 257 2019-10-01
00:00:01
2022-07-08 11:50:15
0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (2.07292e-07 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
6, 1322, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2019-10-01 00:00:01
', '2022-07-08 11:50:15
', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 7


PRIORITY INTEGER 1 97 0 0 257 3
3 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
7, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'3 ', '3 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 8


MAXPRIORITY INTEGER 0.5 97 0 0 257 3
5 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
8, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'3 ', '5 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 9


SESSIONUSERID BIGINT 0.0147059 412 0 0 257 500
747 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0147059 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
9, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'500 ', '747 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 10


CURRENTUSERID BIGINT 0.0147059 412 0 0 257 500
747 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0147059 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
10, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'500 ', '747 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 11


OPERATINGUSERID BIGINT 0.0147059 412 0 0 257 500
747 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0147059 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
11, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'500 ', '747 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 12


SESSIONUSERNAME NATIONAL CHARACTER VARYING(128) 0.0147059 1022 0
0 256 ADMBEUGA
WARDS
34 452598415 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0147059 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
12, 1022, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'ADMBEUGA
', 'WARDS
', 34, 452598415
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 13


CURRENTUSERNAME NATIONAL CHARACTER VARYING(128) 0.0147059 1022 0
0 256 ADMBEUGA
WARDS
34 452598415 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0147059 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
13, 1022, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'ADMBEUGA
', 'WARDS
', 34, 452598415
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 14


OPERATINGUSERNAME NATIONAL CHARACTER VARYING(128) 0.0147059 1022 0
0 256 ADMBEUGA
WARDS
34 452598415 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0147059 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
14, 1022, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'ADMBEUGA
', 'WARDS
', 34, 452598415
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 15


DBID INTEGER 0.015625 97 0 0 257 1
63347561 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.015625 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
15, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '63347561 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 16


DBNAME NATIONAL CHARACTER VARYING(128) 0.0163934 1022 0 0
256 HISTDB
SYSTEM
31 432466823 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0163934 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
16, 1022, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'HISTDB
', 'SYSTEM
', 31, 432466823
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 17


CLIENTHOST CHARACTER VARYING(256) 0.00387597 1066 0 0 256
CORPRSKAPP0001.emea.leaseplancorp.net
sapsdidev1000.emea.leaseplancorp.net
39 660571924 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00387597 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
17, 1066, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'CORPRSKAPP0001.emea.leaseplancorp.net
', 'sapsdidev1000.emea.leaseplancorp.net
', 39, 660571924
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 18


CLIENTIP CHARACTER(16) 0.00213675 1058 0 0 256
10.0.139.120
127.0.0.1
0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00213675 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
18, 1058, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'10.0.139.120
', '127.0.0.1
', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 19


CLIENTTYPE INTEGER 0.142857 97 0 0 257 1
9 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
19, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '9 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 20


CLIENTPID INTEGER 7.60792e-06 97 0 0 257 0
10433960 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (7.60792e-06 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
20, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '10433960 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 21


NPSCLIENTID INTEGER 0.000476872 97 0 0 257 1
3999 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000476872 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
21, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '3999 ', 0, 0
);
-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 22
ROWSETLIMIT INTEGER 1 97 0 0 257 0
0 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
22, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '0 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 23


SESSIONTIMEOUT INTEGER 0.333333 97 0 0 257 0
720 0 0 796010 795996
UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
23, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '720 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 24


QUERYTIMEOUT INTEGER 1 97 0 0 257 0
0 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
24, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '0 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 25


SRQUEUETIMEOUT INTEGER 1 97 0 0 257 360
360 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
25, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'360 ', '360 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 26


QCMAXRESTARTS INTEGER 1 97 0 0 257 2
2 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 26 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 26 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
26, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2 ', '2 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 27


RESOURCEGROUPID BIGINT 0.142857 412 0 0 257 4900
365509 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 27 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 27 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
27, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'4900 ', '365509 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 28


RESOURCEGROUPNAME NATIONAL CHARACTER VARYING(128) 0.142857 1022 0
0 256
RG_USERS
14 340801540 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 28 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 28 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
28, 1022, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'
', 'RG_USERS
', 14, 340801540
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 29


RESOURCEPERCENTAGE INTEGER 0.25 97 0 0 257 1
100 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 29 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 29 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
29, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '100 ', 0, 0
);

-- QHISTDBUSER.\$hist_session_prolog_3 t 0 37517213 129342 30


TZOFFSET INTEGER 0.5 97 0 0 257 0
60 0 0 796010 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 30 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 30 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_session_prolog_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
30, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '60 ', 0, 0
);

------------- QHISTDBUSER.\$hist_state_change_3 -------------

-- QHISTDBUSER.\$hist_state_change_3 t 0 0 10 1 NPSID
INTEGER 0 97 0 0 16554
0 0 796046 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 10
WHERE
oid = (
select objid from _t_object where objname = '\$hist_state_change_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;
UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_state_change_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_state_change_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_state_change_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- QHISTDBUSER.\$hist_state_change_3 t 0 0 10 2
NPSINSTANCEID INTEGER 0 97 0 0 16554
0 0 796046 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_state_change_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_state_change_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_state_change_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- QHISTDBUSER.\$hist_state_change_3 t 0 0 10 3 LOGENTRYID
BIGINT 0 412 0 0 16554
0 0 796046 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_state_change_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_state_change_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_state_change_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- QHISTDBUSER.\$hist_state_change_3 t 0 0 10 4 CHANGETYPE
INTEGER 0 97 0 0 16554
0 0 796046 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_state_change_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_state_change_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_state_change_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- QHISTDBUSER.\$hist_state_change_3 t 0 0 10 5 CHANGE
CHARACTER VARYING(512) 0 1066 0 0 16554

0 0 796046 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_state_change_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_state_change_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_state_change_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
5, 1066, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- QHISTDBUSER.\$hist_table_access_3 -------------

-- QHISTDBUSER.\$hist_table_access_3 t 0 174399857 117083 1


NPSID INTEGER 1 97 0 0 257 1
1 0 0 796030 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 174399857,
relrefs = 0,
relpages = 117083
WHERE
oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '1 ', 0, 0
);
-- QHISTDBUSER.\$hist_table_access_3 t 0 174399857 117083 2
NPSINSTANCEID INTEGER 0.0588235 97 0 0 257 65
82 0 0 796030 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0588235 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'65 ', '82 ', 0, 0
);

-- QHISTDBUSER.\$hist_table_access_3 t 0 174399857 117083 3


OPID BIGINT 7.18554e-08 412 0 0 257 881
280110690 0 0 796030 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (7.18554e-08 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'881 ', '280110690 ', 0, 0
);

-- QHISTDBUSER.\$hist_table_access_3 t 0 174399857 117083 4


LOGENTRYID BIGINT 7.14968e-08 412 0 0 257 584
749646876 0 0 796030 795996
UPDATE _t_attribute
SET
attdispersion = (CAST (7.14968e-08 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'584 ', '749646876 ', 0, 0
);

-- QHISTDBUSER.\$hist_table_access_3 t 0 174399857 117083 5


SEQID INTEGER 0.00735294 97 0 0 257 0
135 0 0 796030 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00735294 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
5, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '135 ', 0, 0
);

-- QHISTDBUSER.\$hist_table_access_3 t 0 174399857 117083 6


SESSIONID BIGINT 6.84228e-08 412 0 0 257 16025
14631034 0 0 796030 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (6.84228e-08 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
6, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'16025 ', '14631034 ', 0, 0
);

-- QHISTDBUSER.\$hist_table_access_3 t 0 174399857 117083 7


DBID INTEGER 0.015625 97 0 0 257 1
63347561 0 0 796030 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.015625 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
7, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '63347561 ', 0, 0
);

-- QHISTDBUSER.\$hist_table_access_3 t 0 174399857 117083 8


DBNAME NATIONAL CHARACTER VARYING(128) 0.0163934 1022 0 0
256 HISTDB
SYSTEM
31 2381326349 796030 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0163934 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
8, 1022, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'HISTDB
', 'SYSTEM
', 31, 2381326349
);

-- QHISTDBUSER.\$hist_table_access_3 t 0 174399857 117083 9


SCHEMAID INTEGER 0.00179533 97 0 0 257 4
108140904 0 0 796030 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00179533 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
9, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'4 ', '108140904 ', 0, 0
);

-- QHISTDBUSER.\$hist_table_access_3 t 0 174399857 117083 10


SCHEMANAME NATIONAL CHARACTER VARYING(128) 0.00374532 1022 0 0
256 ADMBEUGA
WDWHLPF
36 3194187164 796030 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00374532 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
10, 1022, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'ADMBEUGA
', 'WDWHLPF
', 36, 3194187164
);

-- QHISTDBUSER.\$hist_table_access_3 t 0 174399857 117083 11


TABLEID INTEGER 5.93411e-07 97 0 0 257 1215
128431286 0 0 796030 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (5.93411e-07 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
11, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1215 ', '128431286 ', 0, 0
);

-- QHISTDBUSER.\$hist_table_access_3 t 0 174399857 117083 12


TABLENAME NATIONAL CHARACTER VARYING(128) 6.02388e-07 1022 0 0
256 AAA_HIERARCHYSTEP1
testboekh
125 4628901997 796030 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (6.02388e-07 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
12, 1022, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'AAA_HIERARCHYSTEP1
', 'testboekh
', 125, 4628901997
);

-- QHISTDBUSER.\$hist_table_access_3 t 0 174399857 117083 13


USAGE INTEGER 0.0833333 97 0 0 257 1
512 0 0 796030 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0833333 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_table_access_3' and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
13, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '512 ', 0, 0
);

------------- QHISTDBUSER.\$hist_version -------------

-- QHISTDBUSER.\$hist_version t 0 1 1 1 HVERSION INTEGER


1 97 0 0 85 3 3
0 0 796000 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 1,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = '\$hist_version' and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_version' and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_version' and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_version' and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'3 ', '3 ', 0, 0
);

-- QHISTDBUSER.\$hist_version t 0 1 1 2 DBTYPE CHARACTER(1)


1 1058 0 0 85 q
q
0 0 796000 795996
UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_version' and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_version' and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = '\$hist_version' and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'q
', 'q
', 0, 0
);

------------- QHISTDBUSER.HC_SYSTEM_TIMEZONE -------------

-- QHISTDBUSER.HC_SYSTEM_TIMEZONE f 0 0 10 1
TIMEZONE_DESCRIPTION CHARACTER VARYING(50) 0 1066 0 0 16554
0 0 799645 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 10
WHERE
oid = (
select objid from _t_object where objname = ^HC_SYSTEM_TIMEZONE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^HC_SYSTEM_TIMEZONE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^HC_SYSTEM_TIMEZONE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^HC_SYSTEM_TIMEZONE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 1066, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- QHISTDBUSER.HC_SYSTEM_TIMEZONE f 0 0 10 2 NPSID INTEGER


0 97 0 0 16554
0 0 799645 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^HC_SYSTEM_TIMEZONE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^HC_SYSTEM_TIMEZONE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^HC_SYSTEM_TIMEZONE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- QHISTDBUSER.HC_SYSTEM_TIMEZONE f 0 0 10 3 SERVERHOST
CHARACTER VARYING(256) 0 1066 0 0 16554

0 0 799645 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^HC_SYSTEM_TIMEZONE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^HC_SYSTEM_TIMEZONE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^HC_SYSTEM_TIMEZONE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 1066, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- QHISTDBUSER.NZ_CATALOG_SIZE -------------

-- QHISTDBUSER.NZ_CATALOG_SIZE f 0 107327 118 1 LOAD_DATE


TIMESTAMP 0.000457247 1322 0 0 85 2016-07-06 15:58:56
2022-07-07 23:45:02
0 0 799627 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 107327,
relrefs = 0,
relpages = 118
WHERE
oid = (
select objid from _t_object where objname = ^NZ_CATALOG_SIZE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000457247 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_CATALOG_SIZE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_CATALOG_SIZE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_CATALOG_SIZE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 1322, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2016-07-06 15:58:56
', '2022-07-07 23:45:02
', 0, 0
);

-- QHISTDBUSER.NZ_CATALOG_SIZE f 0 107327 118 2 DB_OBJID


INTEGER 0.00414938 97 0 0 85 1
63347561 0 0 799627 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00414938 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_CATALOG_SIZE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_CATALOG_SIZE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_CATALOG_SIZE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1 ', '63347561 ', 0, 0
);

-- QHISTDBUSER.NZ_CATALOG_SIZE f 0 107327 118 3 DATABASE


CHARACTER VARYING(128) 0.00943396 1066 0 0 85 DB_DIEPJ
SYSTEM
30 1354155 799627 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00943396 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_CATALOG_SIZE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_CATALOG_SIZE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_CATALOG_SIZE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 1066, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'DB_DIEPJ
', 'SYSTEM
', 30, 1354155
);

-- QHISTDBUSER.NZ_CATALOG_SIZE f 0 107327 118 4


CATALOG_SIZE_K INTEGER 7.5861e-05 97 0 0 85 26644
18528608 0 0 799627 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (7.5861e-05 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_CATALOG_SIZE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_CATALOG_SIZE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_CATALOG_SIZE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'26644 ', '18528608 ', 0, 0
);

------------- QHISTDBUSER.NZ_GRA_HISTORY -------------

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 1 ENTRY_TS BIGINT


3.2956e-06 412 0 0 257 1466421511986235
1657277938653729 0 0 799642 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 941123,
relrefs = 0,
relpages = 2822
WHERE
oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (3.2956e-06 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1466421511986235 ', '1657277938653729 ', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 2 GROUPID


INTEGER 0.142857 97 0 0 257 4900
365509 0 0 799642 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'4900 ', '365509 ', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 3 PLANS_STARTED


INTEGER 1.43188e-06 97 0 0 257 1
51855981 0 0 799642 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.43188e-06 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '51855981 ', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 4 PLANS_FINISHED


INTEGER 1.4307e-06 97 0 0 257 0
51855981 0 0 799642 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.4307e-06 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '51855981 ', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 5 PLANS_WAITING_LONG


REAL 0.0136986 622 0 0 257 0
16.34 0 0 799642
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0136986 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
5, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '16.34
', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 6


PLANS_WAITING_SHORT REAL 0.0263158 622 0 0 257 0
2.104 0 0 799642
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0263158 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
6, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '2.104
', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 7 PLANS_RUNNING_LONG


REAL 0.000158253 622 0 0 257 0
15 0 0 799642
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000158253 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
7, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '15
', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 8


PLANS_RUNNING_SHORT REAL 0.000786163 622 0 0 257 0
4.403 0 0 799642
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000786163 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
8, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '4.403
', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 9 TARGET_JOB_MAX


SMALLINT 0.333333 95 0 0 257 0
15 0 0 799642 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
9, 95, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '15 ', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 10 TARGET_RSG_PCT


SMALLINT 0.25 95 0 0 257 1
100 0 0 799642 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
10, 95, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '100 ', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 11 TARGET_RSG_MAX


SMALLINT 1 95 0 0 257 100
100 0 0 799642 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
11, 95, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'100 ', '100 ', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 12 ACTUAL_RSG_PCT


SMALLINT 0.00990099 95 0 0 257 0
100 0 0 799642 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00990099 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
12, 95, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '100 ', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 13


ACTUAL_RSG_PCT_SAMPLE SMALLINT 0.00990099 95 0 0 257
0 100 0 0 799642
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00990099 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
13, 95, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '100 ', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 14 ACTUAL_JOB_MAX


SMALLINT 0.0666667 95 0 0 257 1
15 0 0 799642 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0666667 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
14, 95, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '15 ', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 15 ALLOWED_RSG_PCT


SMALLINT 0.00990099 95 0 0 257 0
100 0 0 799642 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00990099 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
15, 95, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '100 ', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 16


ALLOWED_RSG_PCT_SAMPLE SMALLINT 0.00990099 95 0 0 257
0 100 0 0 799642
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00990099 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
16, 95, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '100 ', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 17 EXPECTED_RSG_PCT


SMALLINT 0.0169492 95 0 0 257 0
94 0 0 799642 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0169492 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
17, 95, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '94 ', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 18


EXPECTED_RSG_PCT_SAMPLE SMALLINT 0.0107527 95 0 0 257
0 100 0 0 799642
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0107527 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
18, 95, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '100 ', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 19 RSG_HORIZON_US


BIGINT 0.05 412 0 0 257 270000000
3600000000 0 0 799642 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.05 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
19, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'270000000 ', '3600000000 ', 0, 0
);
-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 20 COMPLIANCE
SMALLINT 0.166667 95 0 0 257 0
6 0 0 799642 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.166667 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
20, 95, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '6 ', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 21 SAMPLE_SECS REAL


0.00105708 622 0 0 257 3.66
1195 0 0 799642
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00105708 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
21, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'3.66 ', '1195
', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 22 BUSY_SECS REAL


2.24603e-05 622 0 0 257 0.01
946.51 0 0 799642
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (2.24603e-05 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
22, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0.01 ', '946.51
', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 23 HOST_CPU_SECS


REAL 0.000393701 622 0 0 257 0
112.65 0 0 799642
795996
UPDATE _t_attribute
SET
attdispersion = (CAST (0.000393701 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
23, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '112.65
', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 24


HOST_DISK_READ_SECS REAL 1 622 0 0 257 0
0 0 0 799642
795996
UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
24, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '0
', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 25


HOST_DISK_WRITE_SECS REAL 1 622 0 0 257 0
0 0 0 799642
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
25, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '0
', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 26 HOST_FABRIC_SECS


REAL 0.00078125 622 0 0 257 0
196.67 0 0 799642
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00078125 as float))
WHERE
attnum = 26 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 26 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
26, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '196.67
', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 27 SPU_CPU_SECS


REAL 0.000105396 622 0 0 257 0
2211.28 0 0 799642
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000105396 as float))
WHERE
attnum = 27 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 27 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
27, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '2211.28
', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 28 SPU_DISK_READ_SECS


REAL 8.71536e-05 622 0 0 257 0
462.84 0 0 799642
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (8.71536e-05 as float))
WHERE
attnum = 28 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 28 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
28, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '462.84
', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 29


SPU_DISK_WRITE_SECS REAL 0.000611995 622 0 0 257 0
924.61 0 0 799642
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000611995 as float))
WHERE
attnum = 29 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 29 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
29, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '924.61
', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 30 SPU_FABRIC_SECS


REAL 0.00096432 622 0 0 257 0
41.93 0 0 799642
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00096432 as float))
WHERE
attnum = 30 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 30 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
30, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '41.93
', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 31 GROUPNAME


CHARACTER VARYING(255) 0.125 1066 0 0 256
_ADMIN_
14 7024900 799642 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.125 as float))
WHERE
attnum = 31 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 31 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
31, 1066, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'
', '_ADMIN_
', 14, 7024900
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 32 START_TIME


TIMESTAMP 3.29951e-06 1322 0 0 257 2016-06-20
12:08:31.984566
2022-07-08 10:58:58.653729
0 0 799642 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (3.29951e-06 as float))
WHERE
attnum = 32 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 32 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
32, 1322, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2016-06-20 12:08:31.984566
', '2022-07-08 10:58:58.653729
', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 33 END_TIME


TIMESTAMP 3.29684e-06 1322 0 0 257 2016-06-20
12:18:31.986235
2022-07-08 11:58:58.653729
0 0 799642 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (3.29684e-06 as float))
WHERE
attnum = 33 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 33 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
33, 1322, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2016-06-20 12:18:31.986235
', '2022-07-08 11:58:58.653729
', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 34


SPU_DATA_DISK_READ_SECS REAL 8.81446e-05 622 0 0 257 0
453.62 0 0 799642
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (8.81446e-05 as float))
WHERE
attnum = 34 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 34 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
34, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '453.62
', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 35


SPU_DATA_DISK_WRITE_SECS REAL 0.00082713 622 0 0 257
0 367.83
0 0 799642 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00082713 as float))
WHERE
attnum = 35 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 35 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
35, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '367.83
', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 36


SPU_TEMP_DISK_READ_SECS REAL 0.00152439 622 0 0 257 0
462.83 0 0 799642
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00152439 as float))
WHERE
attnum = 36 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 36 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
36, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '462.83
', 0, 0
);

-- QHISTDBUSER.NZ_GRA_HISTORY f 0 941123 2822 37


SPU_TEMP_DISK_WRITE_SECS REAL 0.00134048 622 0 0 257
0 924.61
0 0 799642 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00134048 as float))
WHERE
attnum = 37 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 37 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_GRA_HISTORY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
37, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '924.61
', 0, 0
);

------------- QHISTDBUSER.NZ_HARDWARE_FAILURES -------------

-- QHISTDBUSER.NZ_HARDWARE_FAILURES f 0 0 10 1 HF_TIMESTAMP
TIMESTAMP 0 1322 0 0 16554

0 0 799626 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 10
WHERE
oid = (
select objid from _t_object where objname = ^NZ_HARDWARE_FAILURES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_HARDWARE_FAILURES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_HARDWARE_FAILURES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_HARDWARE_FAILURES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 1322, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- QHISTDBUSER.NZ_HARDWARE_FAILURES f 0 0 10 2 HF_HWTYPE
CHARACTER VARYING(20) 0 1066 0 0 16554

0 0 799626 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_HARDWARE_FAILURES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_HARDWARE_FAILURES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_HARDWARE_FAILURES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 1066, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- QHISTDBUSER.NZ_HARDWARE_FAILURES f 0 0 10 3 HF_HWID
INTEGER 0 97 0 0 16554
0 0 799626 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_HARDWARE_FAILURES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_HARDWARE_FAILURES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_HARDWARE_FAILURES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- QHISTDBUSER.NZ_HARDWARE_FAILURES f 0 0 10 4 HF_SPAID
SMALLINT 0 95 0 0 16554
0 0 799626 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_HARDWARE_FAILURES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_HARDWARE_FAILURES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_HARDWARE_FAILURES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 95, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);
-- QHISTDBUSER.NZ_HARDWARE_FAILURES f 0 0 10 5 HF_SPASLOT
CHARACTER(2) 0 1058 0 0 16554

0 0 799626 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_HARDWARE_FAILURES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_HARDWARE_FAILURES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_HARDWARE_FAILURES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
5, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);
-- QHISTDBUSER.NZ_HARDWARE_FAILURES f 0 0 10 6 HF_EVENTSOURCE
CHARACTER VARYING(20) 0 1066 0 0 16554

0 0 799626 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_HARDWARE_FAILURES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_HARDWARE_FAILURES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_HARDWARE_FAILURES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
6, 1066, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);
------------- QHISTDBUSER.NZ_QUERY_HISTORY -------------

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 1


QH_SESSIONID INTEGER 3.36373e-07 97 0 0 257 16025
14630977 0 0 799628 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 163321554,
relrefs = 0,
relpages = 81408820
WHERE
oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (3.36373e-07 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'16025 ', '14630977 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 2


QH_PLANID INTEGER 4.77587e-07 97 0 0 257 1
70725126 0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (4.77587e-07 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '70725126 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 3


QH_CLIENTID INTEGER 0.00182815 97 0 0 257 1
547 0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00182815 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1 ', '547 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 4


QH_CLIIPADDR CHARACTER VARYING(255) 0.00140647 1066 0 0 256

127.0.0.1
15 1887352083 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00140647 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 1066, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'
', '127.0.0.1
', 15, 1887352083
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 5


QH_DATABASE CHARACTER VARYING(255) 0.00900901 1066 0 0 256
TIMTESTDB1
31 2166636457 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00900901 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
5, 1066, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'
', 'TIMTESTDB1
', 31, 2166636457
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 6


QH_USER CHARACTER VARYING(255) 0.00806452 1066 0 0 256
ZUILH
34 1521763613 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00806452 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
6, 1066, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'
', 'ZUILH
', 34, 1521763613
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 8


QH_TSUBMIT TIMESTAMP 4.57848e-07 1322 0 0 257 2016-06-20
12:08:45
2022-07-08 12:50:03
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (4.57848e-07 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
8, 1322, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2016-06-20 12:08:45
', '2022-07-08 12:50:03
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 9


QH_TSTART TIMESTAMP 4.57967e-07 1322 0 0 257 2016-06-20
12:08:45
2022-07-08 12:50:03
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (4.57967e-07 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
9, 1322, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2016-06-20 12:08:45
', '2022-07-08 12:50:03
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 10


QH_TEND TIMESTAMP 4.5629e-07 1322 0 0 257 2016-06-20
12:08:51
2022-07-08 12:50:06
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (4.5629e-07 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
10, 1322, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2016-06-20 12:08:51
', '2022-07-08 12:50:06
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 11


QH_PRIORITY INTEGER 0.5 97 0 0 257 3
4 0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
11, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'3 ', '4 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 12


QH_PRITXT CHARACTER VARYING(255) 0.5 1066 0 0 256 high
normal
8 1306508318 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
12, 1066, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'high
', 'normal
', 8, 1306508318
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 13


QH_ESTCOST BIGINT 5.11054e-06 412 0 0 257 -
6865157567850393600 5631993977364027392 0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (5.11054e-06 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
13, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'-6865157567850393600 ', '5631993977364027392 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 14


QH_ESTDISK BIGINT 1.5937e-05 412 0 0 257 0
71235085 0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.5937e-05 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
14, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '71235085 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 15


QH_ESTMEM BIGINT 7.31582e-05 412 0 0 257 0
5942213583130055 0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (7.31582e-05 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
15, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '5942213583130055 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 16


QH_SNIPPETS INTEGER 0.00436681 97 0 0 257 0
3186 0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00436681 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
16, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '3186 ', 0, 0
);
-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 17
QH_SNPTSDONE INTEGER 0.00294985 97 0 0 257 0
2133 0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00294985 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
17, 97, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '2133 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 18


QH_RESROWS BIGINT 3.84187e-05 412 0 0 257 0
37245445750 0 0 799628 795996
UPDATE _t_attribute
SET
attdispersion = (CAST (3.84187e-05 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
18, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '37245445750 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 19


QH_RESBYTES BIGINT 1.75648e-05 412 0 0 257 0
9220309519096 0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.75648e-05 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
19, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '9220309519096 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 20


QH_CLIENT_USER_ID CHARACTER VARYING(255) 1 1066 0 0 256

2 326627080 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
20, 1066, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'
', '
', 2, 326627080
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 21


QH_CLIENT_APPLICATION_NAME CHARACTER VARYING(255) 0.142857 1066 0
0 256
DataGrip 2019.1.4
43 326635373 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
21, 1066, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'
', 'DataGrip 2019.1.4
', 43, 326635373
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 22


QH_CLIENT_WORKSTATION_NAME CHARACTER VARYING(255) 1 1066 0 0
256

2 326627080 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
22, 1066, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'
', '
', 2, 326627080
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 23


QH_CLIENT_ACCOUNTING_STRING CHARACTER VARYING(255) 1 1066 0 0
256

2 326627080 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
23, 1066, (CAST(0 as float)),
(CAST(0 as float)), '256', '',
'
', '
', 2, 326627080
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 24


HOST_CPU_SECS REAL 6.69613e-05 622 0.309025 0 257 0
29864.5 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (6.69613e-05 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
24, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '29864.5
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 25


HOST_DISK_READ_SECS REAL 1 622 0.309025 0 257 0
0 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
25, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '0
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 26


HOST_DISK_WRITE_SECS REAL 1 622 0.309025 0 257 0
0 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 26 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 26 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
26, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '0
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 27


HOST_FABRIC_SECS REAL 0.000626174 622 0.309025 0 257 0
973.78 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000626174 as float))
WHERE
attnum = 27 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 27 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
27, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '973.78
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 28


SPU_CPU_SECS REAL 0.000223065 622 0.309025 0 257 0
54630.9 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000223065 as float))
WHERE
attnum = 28 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 28 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
28, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '54630.9
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 29


SPU_DISK_READ_SECS REAL 0.000532481 622 0.309025 0 257
0 1512.04
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000532481 as float))
WHERE
attnum = 29 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 29 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
29, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1512.04
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 30


SPU_DISK_WRITE_SECS REAL 0.000765697 622 0.309025 0 257
0 6473.12
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000765697 as float))
WHERE
attnum = 30 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 30 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
30, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '6473.12
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 31


SPU_FABRIC_SECS REAL 0.00116144 622 0.309025 0 257 0
148.64 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00116144 as float))
WHERE
attnum = 31 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 31 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
31, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '148.64
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 32


MAX_SPU_CPU_SECS REAL 0.000240038 622 0.309025 0 257 0
61249 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000240038 as float))
WHERE
attnum = 32 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 32 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
32, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '61249
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 33


MAX_SPU_DISK_READ_SECS REAL 0.000554631 622 0.309025 0 257
0 3581.24
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000554631 as float))
WHERE
attnum = 33 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 33 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
33, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '3581.24
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 34


MAX_SPU_DISK_WRITE_SECS REAL 0.000242131 622 0.309025 0 257
0 7463.86
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000242131 as float))
WHERE
attnum = 34 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 34 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
34, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '7463.86
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 35


MAX_SPU_FABRIC_SECS REAL 0.0012837 622 0.309025 0 257
0 457.92
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0012837 as float))
WHERE
attnum = 35 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 35 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
35, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '457.92
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 36 SQB


BYTEINT 0.5 2525 0.309025 0 257 0
1 0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 36 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 36 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
36, 2525, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 37 FIT


BYTEINT 0.5 2525 0.309025 0 257 0
1 0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 37 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 37 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
37, 2525, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 38


PLANNER_ESTIMATE_SECS REAL 1.34041e-05 622 0.309025 0 257
-2.14748e+07 1.75076e+07
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.34041e-05 as float))
WHERE
attnum = 38 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 38 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
38, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'-2.14748e+07 ', '1.75076e+07
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 39


SQB_ESTIMATE_SECS REAL 0.000650618 622 0.309025 0 257 0
3819.72 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000650618 as float))
WHERE
attnum = 39 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 39 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
39, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '3819.72
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 40


SPU_MEM_PEAK INTEGER 0.000486618 97 0.309025 0 257
0 2054 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000486618 as float))
WHERE
attnum = 40 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 40 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
40, 97, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '2054 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 41


HOST_MEM_PEAK INTEGER 0.00212314 97 0.309025 0 257
0 2431 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00212314 as float))
WHERE
attnum = 41 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 41 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
41, 97, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '2431 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 42


DOWNLOAD_RATE REAL 1.25501e-06 622 0.309025 0 257 0
10853.5 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1.25501e-06 as float))
WHERE
attnum = 42 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 42 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
42, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '10853.5
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 43 WEIGHT


REAL 4.6132e-07 622 0.309025 0 257 0
1.01923 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (4.6132e-07 as float))
WHERE
attnum = 43 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 43 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
43, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1.01923
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 44


GK_WAIT_SECS REAL 1 622 0.309025 0 257 0
0 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 44 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 44 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
44, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '0
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 45


GRA_WAIT_SECS REAL 0.00162866 622 0.309025 0 257 0
289.39 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00162866 as float))
WHERE
attnum = 45 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 45 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
45, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '289.39
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 46


SN_WAIT_SECS REAL 3.28074e-06 622 0.309025 0 257 0
31.7565 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (3.28074e-06 as float))
WHERE
attnum = 46 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 46 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
46, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '31.7565
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 47


EXECUTION_SECS REAL 4.71067e-07 622 0.309025 0 257 0
344567 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (4.71067e-07 as float))
WHERE
attnum = 47 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 47 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
47, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '344567
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 48


IDLE_SECS REAL 1 622 0.309025 0 257 0
0 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 48 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 48 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
48, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '0
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 49


ABORTED BYTEINT 0.5 2525 0.309025 0 257 0
1 0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 49 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 49 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
49, 2525, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 50


SPU_DATA_DISK_READ_SECS REAL 0.00067981 622 0.309025 0 257
0 1350.03
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00067981 as float))
WHERE
attnum = 50 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 50 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
50, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1350.03
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 51


SPU_DATA_DISK_WRITE_SECS REAL 0.000724638 622 0.309025 0 257
0 6322.5
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000724638 as float))
WHERE
attnum = 51 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 51 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
51, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '6322.5
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 52


SPU_TEMP_DISK_READ_SECS REAL 0.00170358 622 0.309025 0 257
0 1167.25
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00170358 as float))
WHERE
attnum = 52 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 52 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
52, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1167.25
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 53


SPU_TEMP_DISK_WRITE_SECS REAL 0.0018797 622 0.309025 0 257
0 2209.89
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0018797 as float))
WHERE
attnum = 53 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 53 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
53, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '2209.89
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 54


MAX_SPU_DATA_DISK_READ_SECS REAL 0.000758725 622 0.309025 0 257
0 1357.62
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000758725 as float))
WHERE
attnum = 54 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 54 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
54, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1357.62
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 55


MAX_SPU_DATA_DISK_WRITE_SECS REAL 0.000270051 622 0.309025 0 257
0 6358.28
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000270051 as float))
WHERE
attnum = 55 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 55 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
55, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '6358.28
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 56


MAX_SPU_TEMP_DISK_READ_SECS REAL 0.00170648 622 0.309025 0 257
0 3543.03
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00170648 as float))
WHERE
attnum = 56 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 56 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
56, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '3543.03
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 57


MAX_SPU_TEMP_DISK_WRITE_SECS REAL 0.00282486 622 0.309025 0 257
0 7421.17
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00282486 as float))
WHERE
attnum = 57 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 57 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
57, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '7421.17
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 58


SPOOLED_MB REAL 0.000354736 622 0.569982 0 257 0
1.82845e-38 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000354736 as float))
WHERE
attnum = 58 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 58 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
58, 622, (CAST(0.569982 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1.82845e-38
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 59


DOWNLOADED_MB REAL 8.93575e-06 622 0.309025 0 257 0
1.81679e+06 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (8.93575e-06 as float))
WHERE
attnum = 59 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 59 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
59, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1.81679e+06
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 60


MAX_SPU_TEMP_DISK_PAGES_ALLOCATED INTEGER 3.84128e-05 97 0.309025
0 257 -1899215435 2084336232
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (3.84128e-05 as float))
WHERE
attnum = 60 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 60 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
60, 97, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'-1899215435 ', '2084336232 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 61


SUBMIT_TIME TIMESTAMP 2.09424e-07 1322 0.309025 0 257 2016-
06-20 12:08:45.704594
2022-07-08 12:50:03.393421
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (2.09424e-07 as float))
WHERE
attnum = 61 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 61 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
61, 1322, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'2016-06-20 12:08:45.704594
', '2022-07-08 12:50:03.393421
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 62


DONE_TIME TIMESTAMP 2.08561e-07 1322 0.309025 0 257 2016-
06-20 12:08:51.543585
2022-07-08 12:50:06.856785
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (2.08561e-07 as float))
WHERE
attnum = 62 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 62 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
62, 1322, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'2016-06-20 12:08:51.543585
', '2022-07-08 12:50:06.856785
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 63


PRIOR_PLAN INTEGER 6.46492e-07 97 0.309025 0 257 0
1641494 0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (6.46492e-07 as float))
WHERE
attnum = 63 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 63 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
63, 97, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1641494 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 64


PLANS_FOLLOW BYTEINT 0.5 2525 0.309025 0 257 0
1 0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 64 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 64 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
64, 2525, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 65 DHJ


BYTEINT 0.5 2525 0.309025 0 257 0
1 0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 65 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 65 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
65, 2525, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1 ', 0, 0
);
-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 66
SPU_MEM_ESTIMATE INTEGER 0.000486618 97 0.309025 0 257
0 2054 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000486618 as float))
WHERE
attnum = 66 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 66 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
66, 97, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '2054 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 67


HOST_MEM_ESTIMATE INTEGER 0.0031348 97 0.309025 0 257
0 2431 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0031348 as float))
WHERE
attnum = 67 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 67 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
67, 97, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '2431 ', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 68


PARSE_SECS REAL 0.000675676 622 0.309025 0 257 0
29.83 0 0 799628
795996
UPDATE _t_attribute
SET
attdispersion = (CAST (0.000675676 as float))
WHERE
attnum = 68 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 68 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
68, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '29.83
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 69


REWRITE_SECS REAL 0.00146413 622 0.309025 0 257 0
2485.92 0 0 799628
795996
UPDATE _t_attribute
SET
attdispersion = (CAST (0.00146413 as float))
WHERE
attnum = 69 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 69 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
69, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '2485.92
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 70


PLAN_CREATE_SECS REAL 0.000364299 622 0.309025 0 257 0
1750.17 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000364299 as float))
WHERE
attnum = 70 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 70 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
70, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1750.17
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 71


PREP_SECS REAL 0.000799361 622 0.309025 0 257 0
46.05 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000799361 as float))
WHERE
attnum = 71 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 71 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
71, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '46.05
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 72


RECONSTITUTE_SECS REAL 0.0555556 622 0.309025 0 257 0
0.62 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0555556 as float))
WHERE
attnum = 72 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 72 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
72, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '0.62
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 73


CACHE_SECS REAL 0.02 622 0.309025 0 257 0
30.39 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.02 as float))
WHERE
attnum = 73 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 73 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
73, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '30.39
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 74


SETUP_SECS REAL 0.0019685 622 0.309025 0 257 0
19.99 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0019685 as float))
WHERE
attnum = 74 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 74 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
74, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '19.99
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 75


NULL_IO_SECS REAL 6.03616e-07 622 0.309025 0 257 -
2.14748e+07 2.14747e+07
0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (6.03616e-07 as float))
WHERE
attnum = 75 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 75 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
75, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'-2.14748e+07 ', '2.14747e+07
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 76


GREED_SECS REAL 1 622 0.309025 0 257 0
0 0 0 799628
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 76 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 76 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
76, 622, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'0 ', '0
', 0, 0
);

-- QHISTDBUSER.NZ_QUERY_HISTORY f 0 163321554 81408820 77 JOB


INTEGER 2.05618e-07 97 0.309025 0 257 1
69223313 0 0 799628 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (2.05618e-07 as float))
WHERE
attnum = 77 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 77 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_QUERY_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
77, 97, (CAST(0.309025 as float)),
(CAST(0 as float)), '257', '',
'1 ', '69223313 ', 0, 0
);

------------- QHISTDBUSER.NZ_SYSUTIL_HISTORY -------------

-- QHISTDBUSER.NZ_SYSUTIL_HISTORY f 0 3172975 1937 1 ENTRY_TS


BIGINT 4.31653e-07 412 0 0 257 1466420916985277
1657278543653655 0 0 799643 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 3172975,
relrefs = 0,
relpages = 1937
WHERE
oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (4.31653e-07 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'1466420916985277 ', '1657278543653655 ', 0, 0
);
-- QHISTDBUSER.NZ_SYSUTIL_HISTORY f 0 3172975 1937 2 ENTRY
TIMESTAMP 4.31444e-07 1322 0 0 257 2016-06-20
12:08:36.985277
2022-07-08 12:09:03.653655
0 0 799643 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (4.31444e-07 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 1322, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'2016-06-20 12:08:36.985277
', '2022-07-08 12:09:03.653655
', 0, 0
);
-- QHISTDBUSER.NZ_SYSUTIL_HISTORY f 0 3172975 1937 3 HOST_CPU
REAL 0.0144928 622 0 0 257 0
0.69 0 0 799643
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0144928 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '0.69
', 0, 0
);
-- QHISTDBUSER.NZ_SYSUTIL_HISTORY f 0 3172975 1937 4 HOST_DISK
REAL 0.01 622 0 0 257 0
1 0 0 799643
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.01 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1
', 0, 0
);
-- QHISTDBUSER.NZ_SYSUTIL_HISTORY f 0 3172975 1937 5 HOST_FABRIC
REAL 0.0175439 622 0 0 257 0
0.69 0 0 799643
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0175439 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
5, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '0.69
', 0, 0
);

-- QHISTDBUSER.NZ_SYSUTIL_HISTORY f 0 3172975 1937 6 HOST_MEMORY


REAL 0.030303 622 0 0 257 0.02
0.34 0 0 799643
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.030303 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
6, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0.02 ', '0.34
', 0, 0
);

-- QHISTDBUSER.NZ_SYSUTIL_HISTORY f 0 3172975 1937 7 SPU_CPU


REAL 0.00990099 622 0 0 257 0
1 0 0 799643
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00990099 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
7, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1
', 0, 0
);

-- QHISTDBUSER.NZ_SYSUTIL_HISTORY f 0 3172975 1937 8 SPU_DISK


REAL 0.00990099 622 0 0 257 0
1 0 0 799643
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00990099 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
8, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1
', 0, 0
);

-- QHISTDBUSER.NZ_SYSUTIL_HISTORY f 0 3172975 1937 9 SPU_FABRIC


REAL 0.00877193 622 0 0 257 0
1.45 0 0 799643
795996
UPDATE _t_attribute
SET
attdispersion = (CAST (0.00877193 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
9, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1.45
', 0, 0
);

-- QHISTDBUSER.NZ_SYSUTIL_HISTORY f 0 3172975 1937 10 SPU_MEMORY


REAL 0.0108696 622 0 0 257 0
0.98 0 0 799643
795996
UPDATE _t_attribute
SET
attdispersion = (CAST (0.0108696 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
10, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '0.98
', 0, 0
);

-- QHISTDBUSER.NZ_SYSUTIL_HISTORY f 0 3172975 1937 11 MAX_SPU_CPU


REAL 0.00990099 622 0 0 257 0
1 0 0 799643
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00990099 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
11, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1
', 0, 0
);

-- QHISTDBUSER.NZ_SYSUTIL_HISTORY f 0 3172975 1937 12 MAX_SPU_DISK


REAL 0.00990099 622 0 0 257 0
1 0 0 799643
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00990099 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
12, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1
', 0, 0
);

-- QHISTDBUSER.NZ_SYSUTIL_HISTORY f 0 3172975 1937 13


MAX_SPU_FABRIC REAL 0.00735294 622 0 0 257 0
1.69 0 0 799643
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00735294 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
13, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1.69
', 0, 0
);

-- QHISTDBUSER.NZ_SYSUTIL_HISTORY f 0 3172975 1937 14


MAX_SPU_MEMORY REAL 0.010989 622 0 0 257 0
0.99 0 0 799643
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.010989 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
14, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '0.99
', 0, 0
);

-- QHISTDBUSER.NZ_SYSUTIL_HISTORY f 0 3172975 1937 15


SPU_TEMP_DISK REAL 0.00990099 622 0 0 257 0
1 0 0 799643
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00990099 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
15, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1
', 0, 0
);

-- QHISTDBUSER.NZ_SYSUTIL_HISTORY f 0 3172975 1937 16


MAX_SPU_TEMP_DISK REAL 0.00990099 622 0 0 257 0
1 0 0 799643
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00990099 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
16, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '1
', 0, 0
);

-- QHISTDBUSER.NZ_SYSUTIL_HISTORY f 0 3172975 1937 17


SPU_TEMP_DISK_PAGES_ALLOCATED REAL 0.015625 622 0 0 257
0 0.83
0 0 799643 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.015625 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
17, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '0.83
', 0, 0
);

-- QHISTDBUSER.NZ_SYSUTIL_HISTORY f 0 3172975 1937 18


MAX_SPU_TEMP_DISK_PAGES_ALLOCATED REAL 0.0125 622 0 0 257
0 0.86
0 0 799643 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0125 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_SYSUTIL_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
18, 622, (CAST(0 as float)),
(CAST(0 as float)), '257', '',
'0 ', '0.86
', 0, 0
);

------------- QHISTDBUSER.NZ_TABLE_SPACE_HISTORY -------------

-- QHISTDBUSER.NZ_TABLE_SPACE_HISTORY f 0 7921999 18253 1


OBJECT_TYPE CHARACTER VARYING(9) 0.5 1066 0 0 341 Table
What?
7 55453993 799625 795996
\echo -n .

UPDATE _t_class
SET
reltuples = 7921999,
relrefs = 0,
relpages = 18253
WHERE
oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
1, 1066, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'Table
', 'What?
', 7, 55453993
);

-- QHISTDBUSER.NZ_TABLE_SPACE_HISTORY f 0 7921999 18253 2


TABLE_NAME CHARACTER VARYING(128) 9.71817e-05 1066 0 0 341
\$hist_column_access_3
_TV_873405_2
123 246876853 799625 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (9.71817e-05 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
2, 1066, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'\$hist_column_access_3
', '_TV_873405_2
', 123, 246876853
);

-- QHISTDBUSER.NZ_TABLE_SPACE_HISTORY f 0 7921999 18253 3


DATABASE_NAME CHARACTER VARYING(128) 0.0131579 1066 0 0 341
DB_DIEPJ
SYSTEM
30 118402218 799625 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0131579 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
3, 1066, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'DB_DIEPJ
', 'SYSTEM
', 30, 118402218
);

-- QHISTDBUSER.NZ_TABLE_SPACE_HISTORY f 0 7921999 18253 4


THE_DATE DATE 0.000454133 1095 0 0 341 2016-06-20
2022-07-07
0 0 799625 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000454133 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
4, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2016-06-20
', '2022-07-07
', 0, 0
);

-- QHISTDBUSER.NZ_TABLE_SPACE_HISTORY f 0 7921999 18253 5


BYTES_USED BIGINT 5.02993e-05 412 0 0 341 0
678895550464 0 0 799625 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (5.02993e-05 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
5, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '678895550464 ', 0, 0
);

-- QHISTDBUSER.NZ_TABLE_SPACE_HISTORY f 0 7921999 18253 6


BYTES_ALLOCATED BIGINT 0.000274952 412 0 0 341
3145728 1507844947968 0 0 799625
795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000274952 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
6, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'3145728 ', '1507844947968 ', 0, 0
);

-- QHISTDBUSER.NZ_TABLE_SPACE_HISTORY f 0 7921999 18253 7


MAX_SPU_BYTES BIGINT 0.000234137 412 0 0 341 0
11384520704 0 0 799625 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000234137 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
7, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '11384520704 ', 0, 0
);
-- QHISTDBUSER.NZ_TABLE_SPACE_HISTORY f 0 7921999 18253 8
MIN_SPU_BYTES BIGINT 0.00023359 412 0 0 341 0
5499912192 0 0 799625 795996

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00023359 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
8, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '5499912192 ', 0, 0
);

-- QHISTDBUSER.NZ_TABLE_SPACE_HISTORY f 0 7921999 18253 9


SKEW_MEASURE BYTEINT 0.0217391 2525 0 0 341 0
100 0 0 799625 795996
UPDATE _t_attribute
SET
attdispersion = (CAST (0.0217391 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^NZ_TABLE_SPACE_HISTORY^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^QHISTDBUSER^ and objdb = (
select _t_database.oid from _t_database where datname = ^HISTDB^
)
)
)
),
9, 2525, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '100 ', 0, 0
);
\echo 'done.'

-- Environment Settings:
set SPU_COUNT = 120;
set HOST_CPU_SPEED = 20;
set SPU_AVAIL_MEMORY = 262144;
set HOST_AVAIL_MEMORY = 66080696;
set SPU_DISK_READ = 100;
set SPU_DISK_WRITE = 25;
set HOST_DISK_READ = 200;
set HOST_DISK_WRITE = 155;
set SPU_TO_HOST_SEND = 1382.6;
set SPU_TO_SPU_BROADCAST = 92;
set HOST_TO_SPU_BROADCAST = 92;
set SPU_TO_SPU_DISTRIBUTE = 2760;
set HOST_TO_SPU_DISTRIBUTE = 1565.21;
set SPU_FABRIC_JOIN_COST = 30;
set SPU_FABRIC1_JOIN_COST = 20;
set CANONICAL_QUALS_HINT = 0;
set FACTREL_MOVEMENT_COST = 1200;
set ENABLE_ABT = 0;
set ENABLE_SEQSCAN = 1;
set ENABLE_INDEXSCAN = 1;
set ENABLE_MVIEW_SCAN = 1;
set ENABLE_MVIEW_INDEXSCAN = 1;
set ENABLE_ALTBASERELSCAN = 1;
set ENABLE_CHUNKRELSCAN = 1;
set ENABLE_THINTABLE = 0;
set ENABLE_MVIEW = 1;
set ENABLE_TIDSCAN = 1;
set ENABLE_SORT = 1;
set ENABLE_NESTLOOP = 1;
set ENABLE_MERGEJOIN = 1;
set ENABLE_HASHJOIN = 1;
set ENABLE_FPGAJOIN = 0;
set ENABLE_LEFT_EXISTSJOIN = 1;
set ENABLE_RIGHT_EXISTSJOIN = 1;
set ENABLE_LEFT_OUTERJOIN = 1;
set ENABLE_RIGHT_OUTERJOIN = 1;
set ENABLE_PROJECTEXPR = 1;
set ENABLE_NDE_OPTIMIZER = 1;
set ENABLE_PUSHDOWN_RELS = 0;
set ENABLE_STAR_PLANNER = 1;
set NUM_STAR_PLANNER_RELS = 8;
set ENABLE_ADAPTIVE_PLANNER = 0;
set ENABLE_AGGKEY_DISTINCT_AGG = 1;
set ENABLE_GROUP_DISTINCT_AGG = 1;
set NUM_DISTINCTAGG_GROUPS = 1000;
set ENABLE_PRINT_PLAN_TEXT = 0;
set ENABLE_PRINT_PLAN_HTML = 0;
set ENABLE_UNIQUE_DISTINCTION = 0;
set ENABLE_INLIST_JOIN = 1;
set INLIST_THRESHOLD = 5;
set ENABLE_TRANSFORM_JOINEXPR = 1;
set ENABLE_TRANSFORM_OUTERJOIN = 1;
set ENABLE_ONCLAUSE_TRANSITIVITY = 1;
set ENABLE_FACTREL_PLANNER = 1;
set FACTREL_SIZE_THRESHOLD = 1e+08;
set FACTREL_LIST = '';
set ENABLE_AGGKEY2_DISTINCT_PLANNER = 1;
set ENABLE_TRANSFORM_SETOPS = 1;
set ENABLE_TRANSFORM_DISTINCT = 1;
set ENABLE_TRANSFORM_NULL_EQUALITY = 1;
set ENABLE_ORDERBY_OPTIMIZATION = 1;
set ENABLE_SNOWFLAKE_PLANNER = 1;
set ENABLE_EXPRESS_DISPERSION = 1;
set ENABLE_SEQUENCE_CACHESIZE = 0;
set ENABLE_RESTORE_MODE = 0;
set ENABLE_JIT_STATS = 1;
set FORCE_JIT_STATS = 0;
set ENABLE_JITSTATS_ON_MVIEWS = 1;
set JIT_STATS_MIN_ROWS = 5000000;
set STATS_COL_GRP_LIMIT = 10;
set EXPRESS_STATS_COL_GRP_LIMIT = 30;
set CTAS_AUTOSTATS_MIN_ROWS = 10000;
set DISPERSION_SPU_MAX_MEMPCT = 4;
set DISTQUALS_MAX_COST = 100;
set DISTQUALS_MAX_JOINS = 2;
set DISTQUALS_MAX_SUBQUERY_LEVELS = 2;
set ENABLE_2PHASE_PLANNER = 1;
set ENABLE_COMPACT_SUBQ_TLIST = 1;
set ENABLE_DISPERSION_ADJUSTMENT = 1;
set ENABLE_DSID_JOINS = 0;
set ENABLE_EXISTS_SELECTIVITY = 1;
set ENABLE_FILTER_NULLS = 1;
set ENABLE_FULLPARTITION_REWRITE = 1;
set ENABLE_JIT_DISPERSION = 1;
set ENABLE_JIT_JOIN = 1;
set ENABLE_SIMPLE_JIT_AVOIDANCE = 1;
set SIMPLE_JIT_AVOIDANCE_EXTRA_CHECK = 1;
set ENABLE_IGNORE_SUSPECT_JIT = 1;
set SUSPECT_JIT_MIN_PAGES = 160;
set ENABLE_ORDERBY_IN_INSERT = 1;
set ENABLE_ORLIST_MERGE = 1;
set ENABLE_PROJECT_JOINEXPR = 1;
set ENABLE_PUSHDOWN_EXISTS_TO_SUBQUERY = 1;
set ENABLE_PUSHDOWN_EXISTS_TO_SUBQUERY_LOG = 0;
set ENABLE_PUSHDOWN_RELS_GROUPBY = 1;
set ENABLE_RANDOM_TABLE_DISTRIBUTE = 1;
set ENABLE_SMALL_CTAS_AUTOSTATS = 1;
set ENABLE_SPECIALS_IN_GENSTATS = 0;
set JIT_SAMPLE_GROWTH_POWER = 0.4;
set JIT_DISP_MIN_ROWS = 5e+08;
set PREBROADCAST_LIMIT = 10;
set PREBROADCAST_ROWS_PER_UNIQUE_VAL = 3;
set SAMPLED_STATS_COL_GRP_LIMIT = 50;
set MAX_STATS_COL_GRP_LIMIT = 100;
set SAMPLED_STATS_MIN_ROWS = 0;
set SCHEDULE_JIT_IN_LONG_QUEUE = 0;
set SNOWFLAKE_GROUP_SIZE = 120;
set SNOWFLAKE_MIN_FACT_SIZE = 1000000;
set SNOWFLAKE_MIN_RATIO = 10;
set SPU_FABRIC2_JOIN_COST = 0;
set STATS_COLUMN_MEMORY_LIMIT = 2048;
set WINDOWAGG_METHOD = 0;
set FORCE_PG_EVAL = 0;
set ROWSETLIMIT_LEVEL = 1;
set CPU_OPERATOR_COST = 0.0005;
set CPU_TUPLE_COST = 5e-05;
set AVG_HASH_COLLISIONS = 4;
set HASH_COLLISION_SAMEAS_DISTRIBUTE = 1;
set HASH_COLLISION_SAMEAS_DISTRIBUTE_MIN_ROWS = 1e+06;
set TRANSFORM_EXPR_SUBLINK_TO_EXISTS_JOIN = 0;
set DBHJ_MEMORY_THRESHOLD = 1;
set ENABLE_ALT_DBHJ_COSTS = 0;
set ENABLE_2PHASE_COST_ADJ = 1;
set ENABLE_CAP_JOIN_NDV = 0;
set ENABLE_CAP_JOIN_SEL = 1;
set ENABLE_CALC_COMPLEX_COLWIDTH = 1;
set ENABLE_USE_SUBPLAN_AVGWIDTH = 1;
set FACTREL_TAG_METHOD = 0;
set FACTREL_LIST_SUBQUERY_SCOPE = 1;
set SWAP_SMALL_MB_THRESH = 10;
set FORCE_TRANSFORM_WINDOWAGG_LAST_VALUE = 0;
set ENABLE_OPT_DELUPD_RESTRICTS = 1;
set COST_JOIN_AS_MULTICOL_HASH = 0;
set DISABLE_GENC_GCC_OPTIMIZATION = 0;
set PROPAGATE_IMPLIED_ENUMERATED_OR_CLAUSES = 1;
set AVOID_COST_MAGNITUDE = 5;
set ENABLE_SP_ESCAPE_QUOTE_PROCESSING = 1;
set ENABLE_NOTIN_OPTIMIZATION = 1;
set ENABLE_NOTIN_TRANSFORMATION = 0;
set ENABLE_OUTERJOIN_EXISTS_PUSHDOWN = 1;
set ENABLE_UNION_STRING_NONSTRING_TYPES = 0;
set ENABLE_RANGECLAUSE_SEL_OPT = 1;
set ENABLE_PB_HASHJOINABLE_RESTRICT = 1;
set ENABLE_EXTEND_MAX_SEGMENT_SIZE = 1;
set EXTEND_MAX_SEGMENT_SIZE = 20971520;
set ENABLE_SETOP_DISPERSION_ADJ = 1;
set ENABLE_DATASLICE_FILTER = 0;
set VALIDATE_DATASLICE_FILTER = 0;
set ENABLE_USERTYPECAST_FOR_VIEW = 1;
set ENABLE_RANDOM_DIST_CHUNK = 1;
set ENABLE_HOST_CHUNK_DIST = 0;
set ENABLE_RST_PARALLEL_INSERT = 0;
set ENABLE_PULLUP_NOTEXISTS_SUBLINK = 1;
set ENABLE_USERNAME_DOMAIN = 0;
set FIXUP_VAR_INSIDE_VAR_CLAUSE = 1;
set ENABLE_DATETIME_MERIDIAN_DELIM = 0;
set MAX_TRANSFORM_SETOPS = 0;

EOF

You might also like