mcp-postgresql-ops

v3.5.2
mcp-postgresql-ops Checked 3 hours ago Published 19 days ago

Add your description here

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_lock_monitoring Get Lock Monitoring

[Tool Purpose]: Monitor current locks and potential deadlocks in PostgreSQL [Exact Functionality]: - List all current locks held and waited for by sessions - Show blocked and blocking sessions, lock types, and wait status - Help diagnose lock contention and deadlock risk - Filter results by granted status, state, mode, lock type, or username [Required Use Cases]: - When user requests "lock monitoring", "deadlock check", "blocked sessions", etc. - When diagnosing performance issues due to locking - When checking for blocked or waiting queries - When filtering specific types of locks or users…

ParameterTypeDescription
database_nameDatabase name to analyze (uses default database if omitted)
grantedFilter by granted status ("true" or "false")
locktypeFilter by lock type ("relation", "transactionid", "virtualxid", etc.)
modeFilter by lock mode ("AccessShareLock", "ExclusiveLock", etc.)
stateFilter by session state ("active", "idle", "idle in transaction", etc.)
usernameFilter by specific username

get_wal_status Get Wal Status

[Tool Purpose]: Monitor WAL (Write Ahead Log) status and statistics [Exact Functionality]: - Show current WAL location and LSN information - Display WAL file generation rate and size statistics - Monitor WAL archiving status and lag - Provide WAL-related configuration and activity metrics [Required Use Cases]: - When user requests "WAL status", "WAL monitoring", "log shipping status", etc. - When diagnosing replication lag or WAL archiving issues - When monitoring database write activity and WAL generation [Strictly Prohibited Use Cases]: - Requests for WAL configuration changes - Requests…

get_replication_status Get Replication Status

[Tool Purpose]: Monitor PostgreSQL replication status and statistics [Exact Functionality]: - Show current replication connections and their status - Display replication lag information for standbys - Monitor WAL sender and receiver processes - Provide replication slot information and statistics [Required Use Cases]: - When user requests "replication status", "standby lag", "replication monitoring", etc. - When diagnosing replication issues or performance problems - When checking replication slot usage and lag [Strictly Prohibited Use Cases]: - Requests for replication configuration changes…

get_server_info Get Server Info

[Tool Purpose]: Check basic information and connection status of PostgreSQL server [Exact Functionality]: - Retrieve PostgreSQL server version information - Display connection settings (with password masking) - Verify server accessibility - Check installation status of extensions (pg_stat_statements, pg_stat_monitor) [Required Use Cases]: - When user requests "server info", "PostgreSQL status", "connection check", etc. - When basic database server information is needed - When preliminary check is needed before using monitoring tools [Strictly Prohibited Use Cases]: - Requests for specific d…

get_current_database_info Get Current Database Info

[Tool Purpose]: Get information about the current database connection [Exact Functionality]: - Show the name of the currently connected database - Display database-specific information like encoding, locale, and size - Provide connection context for clarity in multi-database environments [Required Use Cases]: - When user asks "what database am I connected to?", "current database", etc. - When clarifying database context for analysis operations - When troubleshooting connection issues or confirming target database [Strictly Prohibited Use Cases]: - Requests for database structure changes or…

ParameterTypeDescription
database_nameTarget database to get info for (uses default connection if omitted)

get_database_list Get Database List

[Tool Purpose]: Retrieve list of all databases and their basic information on PostgreSQL server [Exact Functionality]: - Retrieve list of all databases on the server - Display owner, encoding, and size information for each database - Include database connection limit information [Required Use Cases]: - When user requests "database list", "DB list", "database info", etc. - When need to check what databases exist on the server - When database size or owner information is needed [Strictly Prohibited Use Cases]: - Requests for tables or schemas inside specific databases - Requests for database…

get_table_list Get Table List

[Tool Purpose]: Retrieve list of all tables and their information from specified database (or current DB) [Exact Functionality]: - Retrieve list of all tables in specified database - Display schema, owner, and size information for each table - Distinguish table types (regular tables, views, etc.) [Required Use Cases]: - When user requests "table list", "table listing", "schema info", etc. - When need to understand structure of specific database - When table size or owner information is needed [Strictly Prohibited Use Cases]: - Requests for data inside tables - Requests for table structure c…

ParameterTypeDescription
database_nameDatabase name to query (uses currently connected database if omitted)

get_user_list Get User List

[Tool Purpose]: Retrieve list of all user accounts and permission information on PostgreSQL server [Exact Functionality]: - Retrieve list of all database user accounts - Display permission information for each user (superuser, database creation rights, etc.) - Include account creation date and expiration date information [Required Use Cases]: - When user requests "user list", "account info", "permission check", etc. - When user permission management or security inspection is needed - When account status overview is needed [Strictly Prohibited Use Cases]: - Requests for user password informa…

get_table_schema_info Get Table Schema Info

[Tool Purpose]: Retrieve detailed schema information for specific table or all tables in a database [Exact Functionality]: - Retrieve detailed column information including data types, constraints, defaults - Display primary keys, foreign keys, indexes, and other table constraints - Show table-level metadata such as size, row count estimates [Required Use Cases]: - When user requests "table schema", "column info", "table structure", etc. - When detailed table design information is needed for development - When analyzing database structure and relationships [Strictly Prohibited Use Cases]: -…

ParameterTypeDescription
database_name *stringDatabase name to query (REQUIRED - specify which database to analyze)
schema_namestringSchema name to search in (default: "public")
table_nameSpecific table name to analyze (if None, shows all tables)

get_database_schema_info Get Database Schema Info

[Tool Purpose]: Retrieve detailed information about database schemas (namespaces) and their contents [Exact Functionality]: - Show all schemas in a database with their owners and permissions - Display schema-level statistics including table count and total size - List all objects (tables, views, functions) within specific schema - Show schema access privileges and usage patterns [Required Use Cases]: - When user requests "database schema info", "schema overview", "namespace structure", etc. - When analyzing database organization and schema-level permissions - When exploring multi-schema data…

ParameterTypeDescription
database_name *stringDatabase name to query (REQUIRED - specify which database to analyze)
schema_nameSpecific schema name to analyze (if None, shows all schemas)

get_table_relationships Get Table Relationships

[Tool Purpose]: Analyze table relationships including foreign keys, dependencies, and inheritance [Exact Functionality]: - Show foreign key relationships (inbound and outbound) - Display view dependencies and table references - Analyze inheritance and partition relationships - Identify orphaned tables and relationship patterns [Required Use Cases]: - When user requests "table relationships", "foreign keys", "dependencies", etc. - When analyzing database schema design and data model - When planning data migration or schema changes [Strictly Prohibited Use Cases]: - Requests for actual data i…

ParameterTypeDescription
database_name *stringDatabase name to query (REQUIRED - specify which database to analyze)
relationship_typestringType of relationships to show ("all", "foreign_keys", "dependencies", "inheritance")
schema_namestringSchema name to search in (default: "public")
table_nameSpecific table name to analyze (if None, shows database-wide relationship overview)

get_active_connections Get Active Connections

[Tool Purpose]: Retrieve all active connections and session information on current PostgreSQL server [Exact Functionality]: - Retrieve list of all currently active connected sessions - Display user, database, and client address for each connection - Include session status and currently executing query information [Required Use Cases]: - When user requests "active connections", "current sessions", "connection status", etc. - When server load or performance problem diagnosis is needed - When checking connection status of specific users or applications [Strictly Prohibited Use Cases]: - Reques…

get_pg_stat_statements_top_queries Get Pg Stat Statements Top Queries

[Tool Purpose]: Analyze top queries that consumed the most time using pg_stat_statements extension [Exact Functionality]: - Retrieve top query list based on total execution time - Display call count, average execution time, and cache hit rate for each query - Support identification of queries requiring performance optimization [Required Use Cases]: - When user requests "slow queries", "performance analysis", "top queries", etc. - When database performance optimization is needed - When query performance monitoring or tuning is required [Strictly Prohibited Use Cases]: - When pg_stat_statemen…

ParameterTypeDescription
database_nameDatabase name to analyze (uses default database if omitted)
limitintegerNumber of top queries to retrieve (default: 20, max: 100)

get_pg_stat_monitor_recent_queries Get Pg Stat Monitor Recent Queries

[Tool Purpose]: Analyze recently executed queries and detailed monitoring information using pg_stat_monitor extension [Exact Functionality]: - Retrieve detailed performance information of recently executed queries - Display client IP and time bucket information by execution period - Provide more detailed monitoring data than pg_stat_statements [Required Use Cases]: - When user requests "recent queries", "detailed monitoring", "pg_stat_monitor", etc. - When real-time query performance monitoring is needed - When client-specific or time-based query analysis is required [Strictly Prohibited Us…

ParameterTypeDescription
database_nameDatabase name to analyze (uses default database if omitted)
limitintegerNumber of recent queries to retrieve (default: 20, max: 100)

get_database_size_info Get Database Size Info

[Tool Purpose]: Analyze size information and storage usage status of all databases in PostgreSQL server [Exact Functionality]: - Retrieve disk usage for each database - Analyze overall server storage usage status - Provide database list sorted by size [Required Use Cases]: - When user requests "database size", "disk usage", "storage space", etc. - When capacity management or cleanup is needed - When resource usage status by database needs to be identified [Strictly Prohibited Use Cases]: - Requests for data deletion or cleanup operations - Requests for storage configuration changes - Reques…

get_table_size_info Get Table Size Info

[Tool Purpose]: Analyze size information and index usage of all tables in specified schema [Exact Functionality]: - Retrieve size information of all tables within schema - Analyze index size and total size per table - Provide table list sorted by size [Required Use Cases]: - When user requests "table size", "schema capacity", "index usage", etc. - When storage analysis of specific schema is needed - When resource usage status per table needs to be identified [Strictly Prohibited Use Cases]: - Requests for table data deletion or cleanup operations - Requests for index creation or deletion -…

ParameterTypeDescription
database_nameDatabase name to analyze (uses default database if omitted)
schema_namestringSchema name to analyze (default: "public")

get_postgresql_config Get Postgresql Config

[Tool Purpose]: Retrieve and analyze PostgreSQL server configuration parameter values [Exact Functionality]: - Retrieve all PostgreSQL configuration parameters (when config_name is not specified) - Retrieve current value and description of specific configuration parameter - Filter configurations by text pattern (when filter_text is specified) - Display whether configuration can be changed and if restart is required [Required Use Cases]: - When user requests "PostgreSQL config", "config", "parameters", etc. - When checking specific configuration values is needed - When searching for configura…

ParameterTypeDescription
config_nameSpecific configuration parameter name to retrieve (shows all configs if omitted)
filter_textText to filter configuration names or descriptions (optional)

get_index_usage_stats Get Index Usage Stats

[Tool Purpose]: Analyze usage rate and performance statistics of all indexes in database [Exact Functionality]: - Analyze usage frequency and efficiency of all indexes - Identify unused indexes - Provide scan count and tuple return statistics per index [Required Use Cases]: - When user requests "index usage rate", "index performance", "unnecessary indexes", etc. - When database performance optimization is needed - When index cleanup or reorganization is required [Strictly Prohibited Use Cases]: - Requests for index creation or deletion - Requests for index reorganization or REINDEX executio…

ParameterTypeDescription
database_nameDatabase name to analyze (uses default database if omitted)

get_vacuum_analyze_stats Get Vacuum Analyze Stats

[Tool Purpose]: Analyze VACUUM and ANALYZE execution history and statistics per table [Exact Functionality]: - Retrieve last VACUUM/ANALYZE execution time for each table - Provide Auto VACUUM/ANALYZE execution count statistics - Analyze table activity with tuple insert/update/delete statistics [Required Use Cases]: - When user requests "VACUUM status", "ANALYZE history", "table statistics", etc. - When database maintenance status overview is needed - When performance issues or statistics update status verification is required [Strictly Prohibited Use Cases]: - Requests for VACUUM or ANALYZE…

ParameterTypeDescription
database_nameDatabase name to analyze (uses default database if omitted)

get_table_bloat_analysis Get Table Bloat Analysis

[Tool Purpose]: Analyze table bloat based on dead tuple statistics and size information [Exact Functionality]: - Calculate bloat ratio based on dead tuples vs total tuples - Estimate bloat size in bytes and human-readable format - Show last VACUUM/AUTOVACUUM timestamps for maintenance tracking - Identify tables requiring VACUUM maintenance - Filter tables by name pattern using SQL LIKE or ILIKE matching - Sort results by bloat severity (dead tuple ratio and count) [Required Use Cases]: - When user requests "table bloat", "bloat analysis", "dead tuples", etc. - When identifying tables that ne…

ParameterTypeDescription
database_nameTarget database name (uses default database from POSTGRES_DB env var if omitted)
limitintegerMaximum number of results to return (1-100, default: 20)
min_dead_tuplesintegerMinimum dead tuples to include in results (default: 1, shows all tables with any bloat)
schema_nameSchema to analyze (analyzes all user schemas if omitted)
table_patternTable name pattern to filter (SQL LIKE pattern, e.g., 'user%', '%log%', 'temp_*')

get_database_bloat_overview Get Database Bloat Overview

[Tool Purpose]: Provide database-wide bloat overview and summary statistics [Exact Functionality]: - Summarize bloat statistics across all schemas - Identify schemas and tables with highest bloat ratios - Calculate total estimated bloat size per schema - Show aggregate dead tuple counts and maintenance status [Required Use Cases]: - When user requests "database bloat overview", "bloat summary", etc. - When getting high-level view of database storage efficiency - When planning database maintenance activities - When investigating overall database performance issues [Strictly Prohibited Use Ca…

ParameterTypeDescription
database_nameTarget database name (uses default database from POSTGRES_DB env var if omitted)
limitintegerMaximum number of schemas to show (1-50, default: 10)

get_autovacuum_status Get Autovacuum Status

[Tool Purpose]: Analyze autovacuum configuration and current maintenance status for tables [Exact Functionality]: - Analyze autovacuum trigger conditions based on dead tuple thresholds - Calculate current dead tuple ratios vs autovacuum trigger points - Show autovacuum configuration settings per table - Identify tables requiring immediate autovacuum attention - Estimate next autovacuum execution likelihood [Required Use Cases]: - When user requests "autovacuum status", "autovacuum configuration", "vacuum trigger analysis", etc. - When planning autovacuum optimization and tuning - When troubl…

ParameterTypeDescription
database_nameTarget database name (uses default database from POSTGRES_DB env var if omitted)
limitintegerMaximum number of tables to analyze (1-100, default: 50)
schema_nameSchema to analyze (analyzes all user schemas if omitted)
table_patternTable name pattern to filter (SQL LIKE pattern, e.g., 'user%', '%log%', 'temp_*')

get_autovacuum_activity Get Autovacuum Activity

[Tool Purpose]: Monitor recent autovacuum and autoanalyze activity patterns and execution history [Exact Functionality]: - Track recent autovacuum and autoanalyze execution patterns - Analyze autovacuum frequency and timing intervals - Show tables with most/least autovacuum activity - Calculate average time between autovacuum executions - Identify tables with irregular autovacuum patterns [Required Use Cases]: - When user requests "autovacuum activity", "autovacuum history", "vacuum patterns", etc. - When monitoring autovacuum performance and effectiveness - When troubleshooting autovacuum s…

ParameterTypeDescription
database_nameTarget database name (uses default database from POSTGRES_DB env var if omitted)
hours_backintegerTime period to analyze in hours (default: 24, max: 168 for 7 days)
limitintegerMaximum number of tables to show (1-100, default: 50)
schema_nameSchema to analyze (analyzes all user schemas if omitted)

get_running_vacuum_operations Get Running Vacuum Operations

[Tool Purpose]: Monitor currently running VACUUM and ANALYZE operations in real-time [Exact Functionality]: - Show all currently active VACUUM, ANALYZE, and REINDEX operations - Display operation progress, elapsed time, and process details - Identify blocking or long-running maintenance operations - Provide process IDs for operation tracking [Required Use Cases]: - When user requests "running VACUUM", "active maintenance", "current VACUUM status", etc. - When troubleshooting slow or stuck VACUUM operations - When monitoring maintenance operation progress - When identifying maintenance operat…

ParameterTypeDescription
database_nameTarget database name (shows operations in all databases if omitted)

get_vacuum_effectiveness_analysis Get Vacuum Effectiveness Analysis

[Tool Purpose]: Analyze VACUUM effectiveness and maintenance patterns using existing statistics [Exact Functionality]: - Compare manual VACUUM vs autovacuum effectiveness patterns - Analyze VACUUM frequency vs table activity (DML operations) - Identify tables with suboptimal VACUUM patterns - Calculate maintenance efficiency ratios without performance impact - Show VACUUM coverage analysis across all tables [Required Use Cases]: - When user requests "VACUUM effectiveness", "maintenance efficiency", "VACUUM analysis", etc. - When planning manual VACUUM schedules or autovacuum tuning - When id…

ParameterTypeDescription
database_nameTarget database name (uses default database from POSTGRES_DB env var if omitted)
limitintegerMaximum number of tables to analyze (1-100, default: 30)
schema_nameSchema to analyze (analyzes all user schemas if omitted)

get_database_stats Get Database Stats

[Tool Purpose]: Get comprehensive database-wide statistics and performance metrics [Exact Functionality]: - Show database-wide transaction statistics (commits, rollbacks) - Display block I/O statistics (disk reads vs buffer hits) - Provide tuple operation statistics (returned, fetched, inserted, updated, deleted) - Show temporary file usage and deadlock counts - Include checksum failure information and I/O timing data [Required Use Cases]: - When user requests "database statistics", "database performance", "transaction stats", etc. - When analyzing overall database performance and activity -…

get_bgwriter_stats Get Bgwriter Stats

[Tool Purpose]: Analyze background writer and checkpoint performance statistics with version compatibility [Exact Functionality]: - Show checkpoint execution statistics (timed vs requested) - Display checkpoint timing information (write and sync times) - Provide buffer writing statistics by different processes - Analyze background writer performance and efficiency - Automatically adapts to PostgreSQL version (17+ uses separate checkpointer view) [Required Use Cases]: - When user requests "checkpoint stats", "bgwriter performance", "buffer stats", etc. - When analyzing I/O performance and che…

get_io_stats Get Io Stats

[Tool Purpose]: Analyze comprehensive I/O statistics across all database operations with version compatibility [Exact Functionality]: - PostgreSQL 16+: Shows detailed I/O statistics from pg_stat_io (reads, writes, hits, timing) - PostgreSQL 12-15: Falls back to pg_statio_* views with basic I/O information - Provides buffer cache efficiency analysis and I/O timing when available - Identifies I/O patterns and performance bottlenecks [Required Use Cases]: - When user requests "I/O stats", "I/O performance", "buffer cache analysis", etc. - When analyzing storage performance and buffer efficiency…

ParameterTypeDescription
database_nameTarget database name (optional)
limitintegerMaximum number of results to return (1-100, default 20)

get_table_io_stats Get Table Io Stats

[Tool Purpose]: Analyze I/O performance statistics for tables (disk reads vs buffer cache hits) [Exact Functionality]: - Show heap, index, and TOAST table I/O statistics - Calculate buffer hit ratios for performance analysis - Identify tables with poor buffer cache performance - Provide detailed I/O breakdown by table component [Required Use Cases]: - When user requests "table I/O stats", "buffer performance", "disk vs cache", etc. - When analyzing table-level I/O performance - When identifying tables causing excessive disk I/O - When optimizing buffer cache efficiency [Strictly Prohibited…

ParameterTypeDescription
database_nameDatabase name to analyze (uses default database if omitted)
schema_namestringSchema name to filter (default: public)

get_index_io_stats Get Index Io Stats

[Tool Purpose]: Analyze I/O performance statistics for indexes (disk reads vs buffer cache hits) [Exact Functionality]: - Show index-level I/O statistics and buffer hit ratios - Identify indexes with poor buffer cache performance - Provide detailed I/O performance metrics per index - Help optimize index and buffer cache usage [Required Use Cases]: - When user requests "index I/O stats", "index buffer performance", etc. - When analyzing index-level I/O performance - When identifying indexes causing excessive disk I/O - When optimizing index buffer cache efficiency [Strictly Prohibited Use Ca…

ParameterTypeDescription
database_nameDatabase name to analyze (uses default database if omitted)
schema_namestringSchema name to filter (default: public)

get_all_tables_stats Get All Tables Stats

[Tool Purpose]: Get comprehensive statistics for all tables (including system tables if requested) [Exact Functionality]: - Show detailed access statistics for all tables in database - Include sequential scans, index scans, and tuple operations - Provide live/dead tuple estimates and maintenance history - Option to include system catalog tables [Required Use Cases]: - When user requests "all tables stats", "complete table statistics", etc. - When analyzing overall table usage patterns - When investigating table maintenance needs across the database - When getting comprehensive database activ…

ParameterTypeDescription
database_nameDatabase name to analyze (uses default database if omitted)
include_systembooleanInclude system tables in results (default: False)

get_user_functions_stats Get User Functions Stats

[Tool Purpose]: Analyze performance statistics for user-defined functions [Exact Functionality]: - Show execution count and timing statistics for user functions - Calculate average execution time per function call - Identify performance bottlenecks in user-defined functions - Provide total and self execution time breakdown [Required Use Cases]: - When user requests "function stats", "function performance", etc. - When analyzing user-defined function performance - When identifying slow or frequently called functions - When optimizing application function usage [Strictly Prohibited Use Cases]…

ParameterTypeDescription
database_nameDatabase name to analyze (uses default database if omitted)

get_database_conflicts_stats Get Database Conflicts Stats

[Tool Purpose]: Analyze query conflicts in standby/replica database environments [Exact Functionality]: - Show conflict statistics for standby servers (only relevant on replicas) - Display conflicts by type (tablespace, lock, snapshot, bufferpin, deadlock) - Help diagnose replication-related performance issues - Provide conflict resolution statistics [Required Use Cases]: - When user requests "replication conflicts", "standby conflicts", etc. - When analyzing replica server performance issues - When troubleshooting replication lag or conflicts - When monitoring standby server health [Strict…

ParameterTypeDescription
database_nameDatabase name to analyze (uses default database if omitted)

get_wait_events Get Wait Events

[Tool Purpose]: List available wait event types and their descriptions (PostgreSQL 17+) [Exact Functionality]: - Show all wait event types with human-readable descriptions from pg_wait_events catalog - Correlate with current active sessions waiting on events - Filter by specific wait event type - Falls back to basic pg_stat_activity wait info on PG < 17 [Required Use Cases]: - When user requests "wait events", "wait event descriptions", "what are sessions waiting on" - When diagnosing session waits and understanding wait event meanings - When analyzing wait patterns across the database [Str…

ParameterTypeDescription
database_nameDatabase name to analyze (uses default if omitted)
wait_event_typeFilter by wait event type (e.g., "Lock", "IO", "LWLock")

get_wal_summarizer_status Get Wal Summarizer Status

[Tool Purpose]: Monitor WAL summarizer status for incremental backup support (PostgreSQL 17+) [Exact Functionality]: - Show WAL summarizer process state and progress - Display available WAL summaries for incremental backups - Report summarize_wal configuration status - Falls back to version notice on PG < 17 [Required Use Cases]: - When user requests "WAL summarizer", "incremental backup status", "WAL summary" - When checking incremental backup readiness - When monitoring WAL summarization progress [Strictly Prohibited Use Cases]: - Requests for WAL summarizer configuration changes - Reques…

ParameterTypeDescription
database_nameDatabase name (uses default if omitted)

get_async_io_status Get Async Io Status

[Tool Purpose]: Monitor asynchronous I/O subsystem status (PostgreSQL 18+) [Exact Functionality]: - Show active async I/O operations from pg_aios view - Display I/O method configuration and concurrency settings - Report async I/O file handle usage - Falls back to I/O configuration info on PG < 18 [Required Use Cases]: - When user requests "async I/O status", "AIO monitoring", "I/O subsystem" - When investigating I/O performance and concurrency - When checking async I/O configuration [Strictly Prohibited Use Cases]: - Requests for I/O configuration changes - Requests for storage modification…

ParameterTypeDescription
database_nameDatabase name (uses default if omitted)

get_per_backend_io_stats Get Per Backend Io Stats

[Tool Purpose]: Analyze per-backend I/O and WAL statistics (PostgreSQL 18+) Note: Uses pg_stat_get_backend_io() and pg_stat_get_backend_wal() which are new in PG 18. [Exact Functionality]: - Show I/O statistics broken down by individual backend process - Display per-backend WAL generation statistics - Identify backends with highest I/O activity - Falls back to version notice on PG < 18 [Required Use Cases]: - When user requests "per-backend I/O", "backend I/O stats", "which backend is doing most I/O" - When diagnosing I/O hotspots at the process level - When analyzing per-connection I/O pat…

ParameterTypeDescription
database_nameDatabase name (uses default if omitted)
limitintegerMaximum results (1-100, default 20)