Pcornel
Browse topics
Options
Recent
Favorites
Domain

Databases

In short

Databases covers relational database platforms and the operational state behind schemas, queries, transactions, indexes, backup, replication, performance and availability.

Operational focus

How to use this Domain

Separate client/connectivity, authentication, query execution, locking, storage and replication state. Verify the current database state before changing schema, indexes or recovery settings.

Practical starting points

Common operational questions

Read-only checks and their limits. These procedures are documented examples, not captured runtime Evidence. Replace placeholders and confirm the platform/version.

Database connection identity · PostgreSQL
SELECT current_database(), current_user, version();

Inspect: Confirm the intended database, role and server version.

Boundary: A successful connection does not prove privileges on a particular table.

Find related references
Database connection identity · MySQL / MariaDB
SELECT DATABASE(), CURRENT_USER(), VERSION();

Inspect: Confirm the schema and authenticated account, including the host component.

Boundary: The authenticated account alone does not prove application authorization.

Find related references
Waiting database sessions · PostgreSQL
SELECT pid, state, wait_event_type, wait_event FROM pg_stat_activity;

Inspect: Separate active sessions and lock/I/O waits; visibility depends on privileges.

Boundary: One sample does not prove a persistent blocking chain.

Find related references
Running database requests · MySQL / MariaDB
SHOW FULL PROCESSLIST;

Inspect: Find long-running statements and waiting states; output may contain private query text.

Boundary: A long duration does not alone prove a bad execution plan.

Find related references
Query plan · PostgreSQL
EXPLAIN SELECT * FROM <table> WHERE <indexed_column> = <value>;

Inspect: Compare the estimated access path and row count with available indexes.

Boundary: EXPLAIN without ANALYZE does not measure actual runtime.

Find related references
Query plan · MySQL / MariaDB
EXPLAIN SELECT * FROM <table> WHERE <indexed_column> = <value>;

Inspect: Inspect key selection, access type and estimated rows.

Boundary: An index choice does not prove acceptable performance under real load.

Find related references
Blocking relationships · PostgreSQL
SELECT pid, pg_blocking_pids(pid) FROM pg_stat_activity;

Inspect: Follow the blocking PIDs before considering intervention.

Boundary: A blocker may be doing legitimate work; this query does not justify terminating it.

Find related references
Table indexes · MySQL / MariaDB
SHOW INDEX FROM <table>;

Inspect: Compare index columns, order and uniqueness with the actual predicate.

Boundary: Index presence does not prove its selectivity or use.

Find related references
Replication receiver state · PostgreSQL
SELECT status, received_tli, latest_end_lsn, latest_end_time FROM pg_stat_wal_receiver;

Inspect: On a standby, inspect WAL receiver state and reported progress.

Boundary: Receiver progress does not prove replay freshness or application consistency.

Find related references
Replication status · MySQL / MariaDB
SHOW SLAVE STATUS;

Inspect: Inspect receiver/applier state and errors; terminology and replacement commands vary by server version.

Boundary: Reported lag is not a guarantee of data freshness; verify the original read requirement.

Find related references
Browse

Core topics

Start broad here, then expand the sidebar tree for deeper subtopics and Command leaves.

Main topic · 3 Topics in this branch Database Fundamentals

Database Fundamentals defines the operational model for relational database systems: a database engine accepts sessions, executes transactions a…

0 command links · 1 Evidence · 26 reference sections across this branch
Main topic · 4 Topics in this branch SQL Operations

SQL Operations covers the core statements used to read and mutate relational data and schema. The operational emphasis is scope control: know wh…

0 command links · 1 Evidence · 32 reference sections across this branch
Main topic · 3 Topics in this branch Schema, Keys & Data Types

Schema, Keys & Data Types covers how a relational schema encodes identity, relationships, allowed values and storage/semantic choices. Keys and …

0 command links · 1 Evidence · 26 reference sections across this branch
Main topic · 4 Topics in this branch Indexes & Query Plans

Indexes & Query Plans explains how engines choose access paths to locate, join, sort and aggregate data. B-tree-style indexes trade write/storag…

0 command links · 1 Evidence · 32 reference sections across this branch
Main topic · 3 Topics in this branch Transactions, MVCC & Locking

Transactions, MVCC & Locking covers concurrency and consistency. A transaction groups work into a commit/rollback boundary; isolation controls w…

0 command links · 1 Evidence · 26 reference sections across this branch
Main topic · 3 Topics in this branch MariaDB / MySQL

MariaDB / MySQL covers operation of the MySQL-family server with InnoDB as the normal transactional engine: server configuration, schemas/users/…

0 command links · 1 Evidence · 26 reference sections across this branch
Main topic · 3 Topics in this branch PostgreSQL

PostgreSQL covers the PostgreSQL cluster/server model, roles/databases, WAL durability, vacuuming, configuration/logging, backup choices and str…

0 command links · 1 Evidence · 26 reference sections across this branch
Main topic · 3 Topics in this branch Microsoft SQL Server

Microsoft SQL Server covers instance/database boundaries, services, authentication, data/log files, transaction-log behavior, recovery models, b…

0 command links · 1 Evidence · 26 reference sections across this branch
Main topic · 3 Topics in this branch Backup, Restore & Recovery

Backup, Restore & Recovery defines how database state is captured and reconstructed. Logical exports, physical/base backups and log/WAL/binlog s…

0 command links · 1 Evidence · 26 reference sections across this branch
Main topic · 3 Topics in this branch Replication & High Availability

Replication & High Availability covers keeping database copies synchronized enough to serve read scaling or failover. Synchronous modes trade la…

0 command links · 1 Evidence · 26 reference sections across this branch
Main topic · 3 Topics in this branch Performance & Capacity

Performance & Capacity treats database latency as a queue of possible constraints: query/plan work, locks, connection pressure, CPU, memory/cach…

0 command links · 1 Evidence · 26 reference sections across this branch
Main topic · 2 Topics in this branch Database Security

Database Security covers engine-facing authentication, authorization, roles/grants, encrypted transport and auditing. Least privilege should be …

0 command links · 1 Evidence · 20 reference sections across this branch
Main topic · 3 Topics in this branch Database Troubleshooting

Database Troubleshooting organizes symptoms by boundary: client resolution/network, listener/service, authentication/authorization, session capa…

0 command links · 1 Evidence · 26 reference sections across this branch
Confirmation

Confirm action

Continue?