Analyzes insert execution steps for queries.
This table is visible to all users. Superusers can see all rows; regular users can see only their own data. For more information, see Visibility of Data in System Tables and Views.
|Column Name||Data Type||Description|
|userid||integer||ID of the user who generated the entry.|
|query||integer||Query ID. The query column can be used to join other system tables and views.|
|slice||integer||Number that identifies the slice where the query was running.|
|segment||integer||Number that identifies the query segment.|
|step||integer||Query step that executed.|
|starttime||timestamp||Time in UTC that the query started executing, with 6 digits of precision for fractional seconds. For example:
|endtime||timestamp||Time in UTC that the query finished executing, with 6 digits of precision for fractional seconds. For example:
|tasknum||integer||Number of the query task process that was assigned to execute the step.|
|rows||bigint||Total number of rows that were processed.|
The following example returns insert execution steps for the most recent query.
select slice, segment, step, tasknum, rows, tbl from stl_insert where query=pg_last_query_id();
slice | segment | step | tasknum | rows | tbl -------+---------+------+---------+-------+-------- 0 | 2 | 2 | 15 | 24958 | 100548 1 | 2 | 2 | 15 | 25032 | 100548 (2 rows)