See Redshift queries behind cursor fetch
By default, the Redshift ODBC/JDBC drivers will fetch all result rows from a query.
If your result sets are large, you may have ended up using the UseDeclareFetch
and
Fetch
parameters. But if you do this, you won’t see your actual queries in
the STL_QUERY
table or Redshift console. Instead you will see that the
actual long-running query looks like