Amazon Redshift
Database Developer Guide (API Version 2012-12-01)

SVL_S3RETRIES

Use the SVL_S3RETRIES view to get information about why an Amazon Redshift Spectrum query based on Amazon S3 has failed.

SVL_S3RETRIES 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
query integer The query ID.
segment integer

Segment number.

A query consists of multiple segments, and each segment consists of one or more steps. Query segments can run in parallel. Each segment runs in a single process.

node integer The node number.
slice integer The data slice that a particular segment executed against.
eventtime timestamp without time zone Time in UTC that the step started executing.
retries integer The number of retries for the query.
successful_fetches integer The number of times data was returned.
file_size bigint This size of the file.
location text The location of the table,
message text The error message.

Sample Query

The following example retrieves data about failed S3 queries.

SELECT stl_s3retries.query, stl_s3retries.segment, stl_s3retries.node, stl_s3retries.slice, stl_s3retries.eventtime, stl_s3retries.retries, stl_s3retries.successful_fetches, stl_s3retries.file_size, btrim((stl_s3retries."location")::text) AS "location", btrim((stl_s3retries.message)::text) AS message FROM stl_s3retries;

On this page: