- Newest
- Most votes
- Most comments
Hi, 1)Check for Locks: Even if the queries are not blocked, they might still be holding locks that prevent them from being canceled. You can check for locks using the pg_locks view. Look for any locks held by the backend processes associated with the problematic queries and try to release them if possible.
- Monitor Resource Usage: The queries might be stuck due to resource contention or high resource usage. Monitor the system resources (CPU, memory, disk I/O) to see if there are any spikes or unusual patterns when these queries are running. Address any resource bottlenecks that you identify.
3)Review AWS S3 Access:
Ensure that there are no issues with accessing the S3 files or that there have been no changes to the AWS credentials or permissions that could be causing the import process to hang.
4)Update AWS SDK:
If you're using an AWS SDK to interact with S3, make sure it's up to date. Sometimes, older versions of SDKs can have bugs or compatibility issues that cause unexpected behavior.
5)Check Logs and Monitoring:
Review logs and monitoring metrics to see if there are any error messages or warnings associated with the import process. This can help pinpoint the cause of the issue.
6)Database Restart: As a last resort, if you've exhausted all other options and the queries still can't be terminated, you may need to restart the PostgreSQL database. However, be cautious with this approach as it will interrupt all active connections and may cause downtime for your application.
Relevant content
- Accepted Answerasked 2 years ago
- asked 2 months ago
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago