Available for new consultations

Shridhar Khanal

PostgreSQL Consultant & DBA · Production Support

|

4+ years of production PostgreSQL work, first as a DBA at one of Nepal's leading payments platforms and now with enterprise clients at Stormatics. I get to the real cause of a problem and explain it in a way the team can act on.

📍 Kathmandu, Nepal

📧 mr.shridharkhanal7@gmail.com

🔗 Always open to interesting opportunities and collaborations

// About Me

Get to Know Me

Shridhar Khanal

Shridhar Khanal

PostgreSQL Consultant & DBA

Stormatics · Kathmandu, Nepal (UTC+5:45)

I'm a PostgreSQL consultant with 4+ years of production database work, first as a DBA at Khalti, one of Nepal's leading payments platforms, and now with enterprise clients at Stormatics. I'm the lead engineer on client accounts and the first person their teams call when something breaks in production.

I've upgraded multi-terabyte databases from legacy releases and fixed XID wraparound and corruption on live tables. I like getting to the real cause of a problem and explaining it in a way the team can act on. EDB certified, with nine published articles: six on Planet PostgreSQL and three featured in Postgres Weekly.

PostgreSQLPatronipgBackRestQuery TuningLinuxAKS
0+

Years in Production

0

Published Articles

0%

Avg. Query Time Cut

0.0%

Uptime Supported

EDB Postgres AI High Availability Essentials v6

EDB · Aug 2026

EDB Postgres AI Database Advanced v18

EDB · Jul 2026

AWS Academy Graduate – Cloud Architecting

Amazon Web Services · Sep 2024

// Technical Skills

My Tech Stack

A comprehensive toolkit for building and maintaining enterprise-grade data infrastructure

PostgreSQL Core

Query Tuning (EXPLAIN ANALYZE)92%
Indexing (B-tree, GIN, partial, composite)92%
MVCC, Autovacuum & XID Wraparound90%
Replication & HA (Patroni, repmgr)90%
Backup & PITR (pgBackRest)92%

Monitoring & Support

Issue Triage & Root-Cause Analysis92%
PMM, Prometheus & Grafana88%
pgBadger & Loki85%
pg_gather Health Checks85%
Runbooks & Technical Writing88%

Platforms

Linux (RHEL, Ubuntu, Debian)88%
Azure Kubernetes Service78%
Docker80%
AWS EC278%
TimescaleDB80%

Languages & Tools

SQL & PL/pgSQL93%
Bash86%
Python82%
MSSQL & SSIS75%
Git, Dagster & Metabase78%

Also experienced with

Logical ReplicationWALPartitioningpg_upgradepg_repackRoles & GrantsLeast Privilegepg_monitor / pg_signal_backend / pg_maintainSSL/TLSpostgres_exporternode_exporter
// Career Journey

Work Experience

A timeline of my professional journey and the impact I've made at each organization

PostgreSQL Consultant

Stormatics
Remote · Singapore
  • ▸Lead production-issue calls with client teams and CTOs across banking software, public sector and energy.
  • ▸Handle day-to-day production issues for PostgreSQL running in containers on Azure Kubernetes Service (AKS).
  • ▸Found and fixed the root cause of signal 1 (SIGHUP) and signal 3 (SIGQUIT) events across production environments.
  • ▸Tune slow queries with EXPLAIN ANALYZE and fix them with the right index type: B-tree, GIN, partial or composite.
  • ▸Run production health checks with pg_gather, and with AI-automated checks built as agent skills.
  • ▸Set up and maintain Patroni HA clusters, and run minor and major upgrades on RHEL and Ubuntu production hosts.
  • ▸Set up pgBackRest backup and restore over SSH and TLS in production, after testing TLS end to end in a lab.
  • ▸Designed least-privilege access for a banking-software client's third-party DBAs, without giving them SUPERUSER.
  • ▸Built TimescaleDB continuous aggregates for a solar-energy client and used ltree to cut query time by 45%.
  • ▸Set up PMM log monitoring with alerts and custom Prometheus metrics in Grafana.
  • ▸Shared client fixes on Planet PostgreSQL, such as third-party DBA access and pgBackRest over TLS.

Database Administrator

Khalti Pvt. Ltd.
Kathmandu, Nepal · Digital wallet and payments platform
  • ▸Upgraded multi-terabyte production databases from legacy PostgreSQL 9.x to modern releases (pg_upgrade --link).
  • ▸Fixed XID wraparound on transactions tables with corrupted primary keys. Rather than a 3-hour rebuild (timed on a drill copy), I built a trigger-synced copy, deduplicated it, added the key and swapped it in with minimal downtime.
  • ▸Rebuilt a transactions table to stop an autovacuum crash-restart loop, cutting its size by 78%.
  • ▸Removed duplicate rows using ctid, and rebuilt a corrupted index concurrently on the live database.
  • ▸Dropped unused indexes, added missing ones and tuned parameters, cutting average query time by ~30%.
  • ▸Caught WAL piling up on disk and cleared the cause before it turned into an outage.
  • ▸Set up repmgr streaming replication with near-zero replication lag, supporting 99.9% uptime.
  • ▸Set up WAL archiving with PITR, and wrote a script that builds new standbys automatically.
  • ▸Set up Grafana with Prometheus, postgres_exporter and node_exporter, plus SQL health-check functions.
  • ▸Analyzed PostgreSQL logs with pgBadger and with Loki in Grafana.
  • ▸Supported the Dagster ETL pipelines and a Metabase dashboard project.
  • ▸Handled requests from engineering and business teams: SQL functions and procedures (including government reporting), slow ORM queries rewritten as plain SQL, and least-privilege user access.

Database Administrator

Premium Technologies
Kathmandu, Nepal
  • ▸Provided technical support to clients and led the discussions on their production database issues.
  • ▸Ran cross-database migrations of client data to PostgreSQL, and supported each one through go-live.
  • ▸Installed and configured PostgreSQL in client environments.
  • ▸Set up replication, monitoring and failover for production clusters, and sped up queries with better indexing.
  • ▸Built PostgreSQL-to-MSSQL ETL pipelines with Python and SSIS.
  • ▸Wrote PL/pgSQL functions and procedures for reports.
// My Work

Featured Projects

Real production problems I've worked on, from incident response to upgrades, backups and monitoring

Featured

XID Wraparound Fix on Live Transactions Tables

Transactions tables at a payments platform were heading for XID wraparound with corrupted primary keys. A rebuild timed at 3 hours on a drill copy was too long, so I built a trigger-synced copy, deduplicated it, added the key and swapped it in with minimal downtime.

PostgreSQLMVCCTriggersctid
Featured

Multi-Terabyte Upgrade from PostgreSQL 9.x

Upgraded multi-terabyte production databases from legacy PostgreSQL 9.x to modern releases with pg_upgrade --link. Written up as "Upgrading PostgreSQL 9.6 to 17 with pg_upgrade".

PostgreSQLpg_upgradeLinuxBash
Featured

Query Tuning & Index Cleanup

Dropped unused indexes, added missing ones and tuned parameters, cutting average query time by ~30%. Slow ORM queries were rewritten as plain SQL, and EXPLAIN ANALYZE drives each index choice: B-tree, GIN, partial or composite.

EXPLAIN ANALYZEIndexingSQLPerformance Tuning

Autovacuum Crash-Loop Recovery

Rebuilt a transactions table to stop an autovacuum crash-restart loop, cutting its size by 78%. Removed duplicate rows using ctid and rebuilt a corrupted index concurrently on the live database.

AutovacuumctidConcurrent ReindexPostgreSQL

High Availability with Patroni & repmgr

Set up repmgr streaming replication with near-zero replication lag, supporting 99.9% uptime, and now set up and maintain Patroni HA clusters for clients, including minor and major upgrades on RHEL and Ubuntu.

PatronirepmgrStreaming ReplicationRHEL

pgBackRest over TLS & PITR

Set up pgBackRest backup and restore over SSH and TLS in production after testing TLS end to end in a lab, plus WAL archiving with point-in-time recovery and a script that builds new standbys automatically.

pgBackRestTLSWAL ArchivingPITR

Least-Privilege Access for Third-Party DBAs

Designed access for a banking-software client's third-party DBAs that lets them do their job without SUPERUSER. Written up on Planet PostgreSQL as “The Right Way to Give a Third-Party DBA Access to Your PostgreSQL Database”.

Roles & Grantspg_monitorpg_maintainSecurity

TimescaleDB Aggregates for Solar Energy Data

Built TimescaleDB continuous aggregates for a solar-energy client and used ltree to cut query time by 45%.

TimescaleDBContinuous AggregatesltreePostgreSQL

Monitoring & Alerting Stack

Set up Grafana with Prometheus, postgres_exporter and node_exporter plus SQL health-check functions, PMM log monitoring with alerts, and log analysis with pgBadger and Loki. Caught WAL piling up on disk before it turned into an outage.

PMMPrometheusGrafanapgBadger
// Writing

Latest Articles

Practical PostgreSQL write-ups from the field: performance, high availability, disaster recovery and security, published on Stormatics and Medium.

Testimonials

What Colleagues Say

Here's what my colleagues and clients say about working with me

"I highly recommend Shridhar Khanal for his exceptional skills in database management and administration. His proactive approach, keen attention to detail, and commitment to excellence make him a valuable asset to any team."

S

Sagar Dhakal

Software Engineer, Cloco Nepal

"A great professional with strong commitment and passion for work. He never complains about pressure but solves problems efficiently with a positive attitude. His SQL knowledge and logical thinking are commendable."

R

Rabin Acharya

Data Engineer, Infinite Solutions

"Shridhar Khanal is an outstanding Database Administrator with expertise in database design, performance tuning, and security. His work ensures smooth operations and reliability in data infrastructure."

A

Amrit Karki

Software Engineer, John Snowlabs

"Shridhar Khanal's expertise in database management and administration is remarkable. His proactive mindset, problem-solving skills, and meticulous attention to detail set him apart as a top professional."

S

Suman Sharma

Software Engineer

"An exceptional Database Administrator and Python Developer, Shridhar excels in SQL, PostgreSQL, and Python. His technical and digital marketing skills make him a well-rounded and invaluable asset to any team."

Y

Yubraj Adhikari

Flutter Developer

// Get In Touch

Let's Work Together

Looking for PostgreSQL expertise, database optimization, or need help scaling your infrastructure? Let's connect and discuss how I can help.

Or connect with me on