SVL_S3RETRIES - Amazon Redshift
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


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 ran 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 in bytes.
location text The location of the table.
message text The error message.

Sample query

The following example retrieves data about failed S3 queries.

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