SVCS_S3LOG
Use the SVCS_S3LOG view to get troubleshooting details about Redshift Spectrum queries at the segment level. One segment can perform one external table scan.
SVCS_S3LOG 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.
Table Columns
Column Name | Data Type | Description |
---|---|---|
pid | integer | The process ID. |
query | integer | The query ID. |
segment | integer | The segment number. A query consists of multiple segments, and each segment consists of one or more steps. |
step | integer | The query step that ran. |
node | integer | The node number. |
eventtime | timestamp | The time in UTC that the event is recorded. |
message | char(512) | The message for the log entry. |
Sample Query
The following example queries SVCS_S3LOG for the last query that ran.
select * from svcs_s3log where query = pg_last_query_id() order by query,segment;