Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

SVCS_STREAM_SEGS - Amazon Redshift
This page has not been translated into your language. Request translation

SVCS_STREAM_SEGS

Lists the relationship between streams and concurrent segments.

Note

System views with the prefix SVCS provide details about queries on both the main and concurrency scaling clusters. The views are similar to the tables with the prefix STL except that the STL tables provide information only for queries run on the main cluster.

SVCS_STREAM_SEGS 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
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.
stream integer The set of concurrent segments of a query.
segment integer Number that identifies the query segment.

Sample queries

To view the relationship between streams and concurrent segments for the most recent query, type the following query:

select * from svcs_stream_segs where query = pg_last_query_id(); query | stream | segment -------+--------+--------- 10 | 1 | 2 10 | 0 | 0 10 | 2 | 4 10 | 1 | 3 10 | 0 | 1 (5 rows)
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.