Amazon Redshift는 2025년 11월 1일부터 새 Python UDF 생성을 더 이상 지원하지 않습니다. Python UDF를 사용하려면 이 날짜 이전에 UDF를 생성하세요. 기존 Python UDF는 정상적으로 계속 작동합니다. 자세한 내용은 블로그 게시물
보안 로깅
Amazon Redshift가 하나 이상의 AWS Glue Data Catalog 뷰를 참조하는 쿼리를 로깅하는 경우, Amazon Redshift는 해당 쿼리에 대한 메타데이터를 로깅할 때 특정 시스템 테이블 및 뷰 열의 필드를 자동으로 마스킹합니다.
보안 로그 마스킹은 마스킹 조건에 맞는 쿼리를 실행하는 동안 Amazon Redshift가 생성하는 모든 시스템 테이블 및 뷰 항목에 적용됩니다. 다음 표에는 텍스트를 ******로, 숫자를 -1로 마스킹하여 보안 로깅이 적용된 시스템 뷰와 열이 나와 있습니다. 텍스트를 마스킹하는 데 사용되는 별표의 수는 원본 텍스트의 문자 수와 일치하며 최대 6자입니다. 6자를 초과하는 문자열은 6개의 별표로 표시됩니다.
| 시스템 테이블 | 중요한 열 |
|---|---|
| SYS_EXTERNAL_QUERY_DETAIL | 열: source_type, total_partitions, qualified_partitions, scanned_files, returned_rows, returned_bytes, file_format, file_location, external_query_text, warning_message |
| SYS_EXTERNAL_QUERY_ERROR | 열: file_location, rowid, column_name, original_value, modified_value, trigger, action, action_value, error_code |
| SYS_QUERY_DETAIL | 열: step_id, step_name, table_id, table_name, input_bytes, input_rows, output_bytes, output_rows, blocks_read, blocks_write, local_read_IO, remote_read_IO, spilled_block_local_disk, spilled_block_remote_disk, step_attribute |
| SYS_QUERY_HISTORY | 열: returned_rows, returned_bytes |
| STL_AGGR | 열: rows, bytes, tbl, type |
| STL_BCAST | 열: rows, bytes, packets |
| STL_DDLTEXT | 열: label, text |
| STL_DELETE | 열: rows, tbl |
| STL_DIST | 열: rows, bytes, packets |
| STL_ERROR | 열: file, linenum, context, error |
| STL_EXPLAIN | 열: plannode, info |
| STL_FILE_SCAN | 열: name, line, bytes |
| STL_HASH | 열: rows, bytes, tbl, est_rows |
| STL_HASHJOIN | 열: rows, tbl, num_parts, join_type |
| STL_INSERT | 열: rows, tbl |
| STL_LIMIT | 열: rows |
| STL_MERGE | 열: rows |
| STL_MERGEJOIN | 열: rows, tbl |
| STL_NESTLOOP | 열: rows, tbl |
| STL_PARSE | 열: rows |
| STL_PLAN_INFO | 열: startupcost, totalcost, rows, bytes |
| STL_PROJECT | 열: rows, tbl |
| STL_QUERY | 열: querytxt |
| STL_QUERY_METRICS | 열: max_rows, rows, max_blocks_read, blocks_read, max_blocks_to_disk, blocks_to_disk, max_query_scan_size, query_scan_size |
| STL_QUERYTEXT | 열: text |
| STL_RETURN | 열: rows, bytes |
| STL_S3CLIENT | 열: bucket, key, transfer_size, data_size |
| STL_S3CLIENT_ERROR | 열: bucket, key, error, transfer_size |
| STL_SAVE | 열: rows, bytes, tbl |
| STL_SCAN | 열: rows, bytes, fetches, type, tbl, rows_pre_filter, rows_pre_user_filter, perm_table_name, scanned_mega_value |
| STL_SORT | 열: rows, bytes, tbl |
| STL_SSHCLIENT_ERROR | 열: ssh_username, endpoint, command, error |
| STL_TR_CONFLICT | 열: table_id |
| STL_UNDONE | 열: table_id |
| STL_UNIQUE | 열: rows, type, bytes |
| STL_UTILITYTEXT | 열: label, text |
| STL_WINDOW | 열: rows |
| STV_BLOCKLIST | 열: col, tbl, num_values, minvalue, maxvalue |
| STV_EXEC_STATE | 열: rows, bytes, label |
| STV_INFLIGHT | 열: label, text |
| STV_LOCKS | 열: table_id |
| STV_QUERY_METRICS | 열: rows, max_rows, blocks_read, max_blocks_read, max_blocks_to_disk, blocks_to_disk, max_query_scan_size, query_scan_size |
| STV_STARTUP_RECOVERY_STATE | 열: table_id, table_name |
| STV_TBL_PERM | 열: id, name, rows, sorted_rows, temp, block_count, query_scan_size |
| STV_TBL_TRANS | 열: id, rows, size |
| SVCS_EXPLAIN | 열: plannode, info |
| SVCS_PLAN_INFO | 열: rows, bytes |
| SVCS_QUERY_SUMMARY | 열: step, rows, bytes, rate_row, rate_byte, label, rows_pre_filter |
| SVCS_S3LIST | 열: bucket, prefix, retrieved_files, max_file_size, avg_file_size |
| SVCS_S3LOG | 컬럼: message |
| SVCS_S3PARTITION_SUMMARY | 열: total_partitions, qualified_partitions, min_assigned_partitions, max_assigned_partitions, avg_assigned_partitions |
| SVCS_S3QUERY_SUMMARY | 열: external_table_name, file_format, s3_scanned_rows, s3_scanned_bytes, s3query_returned_rows, s3query_returned_bytes |
| SVL_QUERY_METRICS | 열: step_label, scan_row_count, join_row_count, nested_loop_join_row_count, return_row_count, spectrum_scan_row_count, spectrum_scan_size_mb |
| SVL_QUERY_METRICS_SUMMARY | 열: step_label, scan_row_count, join_row_count, nested_loop_join_row_count, return_row_count, spectrum_scan_row_count, spectrum_scan_size_mb |
| SVL_QUERY_REPORT | 열: rows, bytes, label, rows_pre_filter |
| SVL_QUERY_SUMMARY | 열: rows, bytes, rows_pre_filter |
| SVL_S3LIST | 열: bucket, prefix, retrieved_files, max_file_size, avg_file_size |
| SVL_S3LOG | 컬럼: message |
| SVL_S3PARTITION | 열: rows, bytes, label, rows_pre_filter |
| SVL_S3PARTITION_SUMMARY | 열: total_partitions, qualified_partitions, min_assigned_partitions, max_assigned_partitions, avg_assigned_partitions |
| SVL_S3QUERY | 열: external_table_name, file_format, s3_scanned_rows, s3_scanned_bytes, s3query_returned_rows, s3query_returned_bytes, files |
| SVL_S3QUERY_SUMMARY | 열: external_table_name, file_format, s3_scanned_rows, s3_scanned_bytes, s3query_returned_rows, s3query_returned_bytes |
| SVL_S3RETRIES | 열: file_size, location, message |
| SVL_SPECTRUM_SCAN_ERROR | 열: location, rowid, colname, original_value, modified_value, trigger, action, action_value, error_code |
| SVL_STATEMENTTEXT | 열: type, text |
| SVL_STORED_PROC_CALL | 열: querytxt |
| SVL_STORED_PROC_MESSAGES | 열: message, linenum, querytext |
| SVL_UDF_LOG | 열: message, funcname |
| SVV_DISKUSAGE | 열: name, col, tbl, blocknum, num_values, minvalue, maxvalue |
| SVV_QUERY_STATE | 열: rows, bytes, label |
| SVV_TABLE_INFO | 열: table_id, table |
| SVV_TRANSACTIONS | 열: relation |
시스템 테이블 및 뷰에 대한 자세한 내용은 Amazon Redshift 데이터베이스 개발자 안내서의 시스템 테이블 및 뷰 참조를 참조하세요. 쿼리 결과를 동적으로 마스킹하는 Amazon Redshift의 기능에 대한 자세한 내용은 Amazon Redshift 데이터베이스 개발자 안내서의 동적 데이터 마스킹을 참조하세요. Amazon Redshift를 사용하여 AWS Glue Data Catalog에서 뷰를 생성하는 방법에 대한 자세한 내용은 Amazon Redshift 데이터베이스 개발자 안내서의 AWS Glue Data Catalog 뷰를 참조하세요.