Skip to content
View victormends's full-sized avatar

Organizations

@emap2021

Block or report victormends

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
victormends/README.md

João Victor Mendes

"I treat production behavior as the real specification: isolate variables, find root causes, fix structurally so the failure class cannot recur."

Typing SVG

LinkedIn   Résumé

Location   Current employer   English


name:              João Victor Mendes
role:              L2/L3 Technical Support Engineer
company:           Pedroso Automação  # B2B fiscal compliance ERP SaaS
location:          União da Vitória, PR, Brazil

specialty:         [PostgreSQL, Incident Response, ETL, Windows Server Automation]
clients:           500+ corporate  # 1500+ end-users
sla_compliance:    "95%+"
tickets_per_week:  80+

featured_now:
  - "incident-response-runbook  # PostgreSQL incident response + NVC + post-mortems"
  - "pg-incident-recovery      # Windows-first PostgreSQL multi-cluster recovery tool"
  - "windows-postgres-deployment-installer  # operator-assisted Windows PostgreSQL deployment automation"
  - "pg-restore-tool           # Windows-first local PostgreSQL restore utility for rebuild scenarios"

open_to:           [Support Engineering, Database Engineering, SRE]
contact:           linkedin.com/in/mendes-victor

Featured Public Repo

incident-response-runbook

incident-response-runbook

A production-grade PostgreSQL incident response framework that combines:

  • WAL disk exhaustion recovery (pg_wal zero bytes free)
  • SCRAM/MD5 and pg_hba.conf authentication failures
  • Connection pool exhaustion and lock contention diagnosis
  • Worked post-mortems for both infra and application-layer incidents
  • NVC-based client communication and war-room protocols

This is the clearest public artifact of how I approach production systems: diagnose from first principles, document the failure mode precisely, and encode the fix so the class of incident does not recur.


Featured Tool Repo

pg-incident-recovery

pg-incident-recovery

A Windows-first PostgreSQL recovery orchestrator for multi-cluster hosts. It automates the safe parts of post-reboot incident handling:

  • discovery of stopped PostgreSQL services
  • data-directory resolution from service definitions
  • stale postmaster.pid cleanup
  • pg_controldata-based missing WAL triage
  • parallel startup with bounded retries
  • crash-recovery monitoring and clean handoff back to Windows SCM
  • persistent queue files so interrupted runs can resume cleanly

This is the executable complement to the runbook repo: the runbook explains how I reason about incidents; this tool shows how I automate one of the ugliest recovery paths without crossing into unsafe automation.


Featured Deployment Repo

windows-postgres-deployment-installer

windows-postgres-deployment-installer

An operator-assisted Windows 10/11 deployment baseline for PostgreSQL environments where agility and standardization matter more than infrastructure abstraction.

  • PostgreSQL ZIP bootstrap with initdb, service registration, and config templating
  • role synchronization, database creation, restore orchestration, and SQL validation
  • conservative-by-default network posture with configurable listen addresses and LAN CIDRs
  • operator-focused fallbacks designed to reduce manual install time from hours to minutes while preserving human review at the end

This repo shows how I think about deployment automation in support-heavy environments: automate the repetitive and failure-prone steps, make reruns safer, and still leave the final evaluation in human hands.


Featured Restore Repo

pg-restore-tool

pg-restore-tool

A Windows-first PostgreSQL restore utility for a narrow support scenario: rebuilding a local or operator-controlled database quickly after workstation failure, reinstall, or environment corruption.

  • restore profiles that separate safer session-level acceleration from explicitly unsafe cluster-wide durability tradeoffs
  • operator-led database drop/recreate flow for offline rebuild cases
  • backup validation, connection checks, and lightweight post-restore verification
  • pragmatic framing: not a cloud backup platform, not PITR orchestration, not a live in-place restore system

This repo shows another part of my support engineering approach: encode the ugly recovery path honestly, preserve operator control, and make the risky parts explicit instead of hiding them behind vague automation.


Impact Highlights


PostgreSQL & Database Engineering

  • Eliminated 100% of WAL data losses across 500+ environments by querying pg_replication_slots, identifying an orphaned slot holding WAL segments for a decommissioned subscriber, and enforcing max_slot_wal_keep_size as a fleet-wide guardrail so the failure class cannot recur.
  • Cut restore time 60% (17 min to 6:58) on a 15GB+ database via pg_restore -j 4 parallel processing. Traced 1GB/month disk bloat through pg_class and pg_toast to encrypted paths serialized as thousands of characters per audit log entry.
  • Automated 30-database cluster recovery with a PowerShell script that parallelizes state checks, clears stale postmaster.pid files, and handles WAL recovery on boot. Recovery cut from hours to under 5 minutes, daily support calls to near-zero.
  • Traced silent TLS 1.0 downgrade failures on Windows 11 clients via Process Monitor with no prior documentation. Identified a registry key forced by the application, delivered a quickfix, and enabled a permanent code fix within the same week.
  • Restored database access fleet-wide after a pg_hba.conf SCRAM-SHA-256 vs MD5 mismatch, applying scoped MD5 by IP range while preserving SCRAM everywhere else. No reformats, no security posture reduction.


Automation & Data Engineering

  • Engineered a 70M-record ETL pipeline in a single day using PL/pgSQL + PowerShell against a 15GB+ government dataset. Unlogged tables and dynamic SQL cut processing time 60%, surfacing the top 0.001% of leads that drove Q3 commercial strategy.
  • Compressed fiscal invoice diagnosis from 30+ min to under 5 min using LLM-assisted XML parsing of raw SEFAZ rejection messages across NCM, CFOP, ICMS, and CBNEF formats, eliminating an entire class of developer escalations.
  • Zero data-loss legacy migration: reverse-engineered a Firebird database with no documentation in an afternoon, replaying 20 years of transaction history (10,000+ items, 500k BRL) from first principles to reconstruct current inventory state.

Previous Role — Cloud & Infrastructure (Girafa, 2022-2024)

  • Managed DNS and cloud infrastructure for 70+ corporate clients across AWS Route 53, Registro.br, and Locaweb, including purchases, migrations, ownership transfers, and full record configuration.
  • Investigated a client security breach by auditing Git history, WordPress roles, and access logs. Revoked sessions, reset credentials, restructured access controls.
  • Coordinated staged AWS deployments across a multi-developer environment, enforcing freeze protocols across 70+ client sites.


Technical Stack

PostgreSQL   PowerShell   Python   AWS   Git   Windows Server   Bash

WAL Management PL/pgSQL EXPLAIN ANALYZE Replication Slots Bloat Analysis autovacuum

ITIL RCA P1/P2 Incident Response ETL Pipeline Design NF-e / CT-e / SEFAZ pg_hba / SCRAM / RBAC


Background


OBMEP Mathematics Olympiad Silver Medal (2016)  ·  Bronze (2014)  ·  2x Honorable Mentions Top 0.01% of 18M+ participants nationally  ·  Selected for CDMC elite program at FGV



FGV — Data Science & Economics (2020-2022) Full-ride OBMEP scholarship  ·  EDA: 9.71

IFPR — Systems Analysis & Development (2023-2024) Grade A in Mathematics for Computing



footer

Pinned Loading

  1. windows-postgres-deployment-installer windows-postgres-deployment-installer Public

    Windows-first PostgreSQL deployment automation focused on agility, standardization, and operator review.

    PowerShell

  2. pg-incident-recovery pg-incident-recovery Public

    Windows-first PostgreSQL recovery orchestrator for multi-cluster hosts, with bounded retries, crash-recovery monitoring, WAL triage, and persistent state.

    PowerShell

  3. pg-restore-tool pg-restore-tool Public

    Windows-first PostgreSQL restore utility for local rebuild and recovery scenarios.

    Python

  4. tls-fix-erp-updater tls-fix-erp-updater Public

    PowerShell workaround for ERP updaters that silently downgrade user TLS settings

    PowerShell

  5. incident-response-runbook incident-response-runbook Public

    Production-grade incident response framework for PostgreSQL environments that treats communication failure as a first-class technical problem.

  6. nfe-xml-organizer nfe-xml-organizer Public

    Small PowerShell utility to organize NF-e XML files by CNPJ and issue month.

    PowerShell