$hist_query_epilog_n
The $hist_query_epilog_n table contains the final data that is collected at the end of the query.
| Name | Type | Description |
|---|---|---|
| npsid | integer | NPS ID. This ID and the instance ID (npsinstanceid) and operation ID (opid) form the foreign key into the operation table. |
| npsinstanceid | integer | Instance ID of the source system. |
| opid | bigint | Operation ID. This ID is used as a foreign key from query epilog, overflow and plan, table, column access tables to query prolog. |
| logentryid | bigint | This ID and the NPS ID (npsid) and instance ID (npsinstanceid)
form:
|
| sessionid | bigint | Netezza Performance Server session ID. This ID and the NPS ID (npsid) and instance ID (npsinstanceid) form the foreign key from query, plan, table, and column access tables into session tables. |
| finishtime | timestamp | The GMT time when the query finished. |
| resultrows | bigint | The number of rows affected by the SQL query. This field shows the row count for SELECT, INSERT, UPDATE, DELETE, and CTAS queries on user tables, and SELECT, INSERT, UPDATE, and DELETE queries on system tables or bridge queries. For all other queries, the value is 0. |
| status | integer | Completion status of the query:
|
| tzoffset | integer | The timezone offset in minutes. This field is available only in database version 2 or later. |