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.”

SVL_FEDERATED_QUERY - Amazon Redshift

SVL_FEDERATED_QUERY

Use the SVL_FEDERATED_QUERY view to view information about a federated query call.

SVL_FEDERATED_QUERY 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.

Some or all of the data in this table can also be found in the SYS monitoring view SYS_EXTERNAL_QUERY_DETAIL. The data in the SYS monitoring view is formatted to be easier to use and understand. We recommend that you use the SYS monitoring view for your queries.

Table columns

Column name Data type Description
userid integer The ID of the user running the query.
xid bigint The transaction ID.
pid integer The ID of the leader process running the query.
query integer The query ID of a federated call.
sourcetype character (32) The federated call source type, for example "PG".
recordtime timestamp The time when a query is sent for federation. UTC is used.
querytext character (4000) The query string sent to the remote PostgreSQL engine for execution.
num_rows bigint The number of rows returned by the federated query.
num_bytes bigint The number of bytes returned by the federated query.
duration bigint The time (microseconds) spent fetching rows from cursor calls. It is the time spent running the federated query, as well as, getting results back.

Sample queries

To show information about federated query calls, run the following query.

select query, trim(sourcetype) as type, recordtime, trim(querytext) as "PG Subquery" from svl_federated_query where query = 4292; query | type | recordtime | pg subquery -------+------+----------------------------+--------------------------------------------------------------- 4292 | PG | 2020-03-27 04:29:58.485126 | SELECT "level" FROM functional.employees WHERE ("level" >= 6) (1 row)
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.