All skills

Advises on Amazon RDS open-source engines (MySQL, MariaDB, PostgreSQL) for instance creation, upgrade planning, commitment pricing, proxy evaluation, and Blue/Green deployments. Handles any RDS MySQL, MariaDB, or PostgreSQL question, including create a production-ready RDS MySQL instance, provision an RDS PostgreSQL database, run the RDS upgrade advisor for my RDS MySQL instance, what are my upgrade options, upgrade RDS MariaDB from 10.6 to the latest version, should I buy reserved instances or a savings plan for db.r7g.2xlarge RDS MySQL, change a VARCHAR to INT column on RDS MySQL 8.0 with Blue/Green, and does RDS Proxy help when PgBouncer already runs in transaction mode. Covers instance creation with production best practices, describe-db-instances and describe-db-engine-versions upgrade-target workflow, live prechecks via SSM or direct connection, RI versus DSP commitment pricing, RDS Proxy versus PgBouncer, and Blue/Green lifecycle with binlog replay compatibility.

Use this Skill: https://skilld.dev/gh/aws/agent-toolkit-for-aws/rds-oss

This session only. Nothing lands on disk.

referencesupgrade-query-load-postgresql.md

≈463 tokens on demand. Your agent reads this file only when SKILL.md points to it.

RDS PostgreSQL — Query Load Analysis & Explain Plan Review

Step 1: Get Top 5 Queries by Load

SELECT queryid, query, calls, total_exec_time::numeric(12,2) AS total_time_ms,
  mean_exec_time::numeric(12,2) AS avg_time_ms,
  rows, shared_blks_hit, shared_blks_read
FROM pg_stat_statements
WHERE dbid = (SELECT oid FROM pg_database WHERE datname = current_database())
ORDER BY total_exec_time DESC LIMIT 5;

Step 2: Run EXPLAIN on Each Query

EXPLAIN (ANALYZE, BUFFERS, FORMAT JSON) <query>;

For data-modifying queries, wrap in a transaction and rollback.

Step 3: Flag Upgrade-Impacting Patterns

🔴 Critical

Pattern Versions Action
Sort Method: external merge PG 15+ work_mem per-operation accounting changed. Tune work_mem and hash_mem_multiplier.
HashAggregate with Batches > 1 PG 15+ Memory accounting different. Adjust work_mem.
JIT on short queries PG 14+ JIT overhead causes latency spikes. Adjust jit_above_cost thresholds.

🟡 Warning

Pattern Versions Action
Nested Loop without Memoize PG 14+ PG 14 introduced Memoize. Usually beneficial. Set enable_memoize=off if regression.
Parallel scan threshold changes PG 14-16 Plans may gain/lose parallelism. Compare on test instance.
Merge Join on large tables PG 16+ Improved costing may change join strategy. Benchmark.

🟢 Clean

Pattern Notes
Simple Index Scan / Index Only Scan Stable across versions.
Seq Scan on small tables No change.

Key PostgreSQL Optimizer Changes

  • PG 14: Memoize node, improved extended statistics
  • PG 15: work_mem hash operation changes, improved sort
  • PG 16: Subquery decorrelation, improved merge join costing
  • PG 17: Enhanced memory management, improved vacuum

Source: SKILL.md on GitHub

No alerts3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    This skill is a specialized advisor for Amazon RDS open-source engines, providing workflows for resource provisioning, upgrades, and cost optimization. It adheres to security best practices by enforcing encryption, multi-factor availability, and secure credential management via AWS Secrets Manager. No malicious patterns were identified.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: LOW · No issues

Signed by skilld at aea59f3. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 months ago
version
1

README badge

README badge for aws/agent-toolkit-for-aws/rds-oss