Monitoring and profiling redshift query

0

What tables (svl, stl, etc) should I consider in order to filter out which local tables are used in sql executed in redshift? I am thinking of using regex to query stl_ddltext for local tables but it does not seem to work

質問済み 1年前309ビュー
2回答
0

Hi Milind,

Thank you for your answer, I'm still not clear on how to identify which tables are local or external since this info does not seem to be present in the suggested table. Can you advise me on this?

回答済み 1年前
  • Please use the comment button to respond to answers instead of creating a new answer.

0

You can use PG_TABLE_DEF for listing all tables and its columns by schema. And use STL_QUERYTEXT to get query text for SQL commands. Building such string parsing functionality can be challenging so one option is to consider monitoring tools from the AWS Marketplace.

Edit: Kindly refer to SVV_EXTERNAL_TABLES for external tables in Redshift.

profile pictureAWS
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ