1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
0
In order to extract this information you need to look into system tables. You can call Redshift Data API to run a query against system tables from boto3.
Create a query to extract time & query text from STL_QUERY + STL_QUERYTEXT (Provisioned) or SYS_QUERY_HISTORY (Serverless).
Your query would look like SELECT * FROM ... WHERE text LIKE '%INSERT%' AND text LIKE '%mytable%'
.
Note that in the example above, mytable may not be the target of INSERT so you need to check the extracted query text manually. If you need full automation, parse the query text in Python using SQL parser library like below. https://github.com/macbre/sql-metadata
con risposta un anno fa
Contenuto pertinente
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata un anno fa
- Perché il ripristino point-in-time della mia istanza di database di Amazon RDS richiede molto tempo?AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata un anno fa