Database Engine Developer | PostgreSQL contributor
Seoul, South Korea | sjh910805@gmail.com | GitHub | LinkedIn
Languages: C, C++, Python, Go, SQL, Bash
PostgreSQL HA and cluster lifecycle automation (Patroni, etcd, Azure) and C extensions; previously query transformation and optimization in a C++ SQL compiler. Authored a recovery-target fix now in PostgreSQL master.
1) OpenSQL Team (Nov 2024 - Present): PostgreSQL-based RDBMS with Oracle compatibility.
-
High availability and cluster orchestration (Patroni, etcd, Azure)
- Designed and built the Python tool, shipped with the product's Azure deployment, that the control plane calls to scale Patroni clusters out and in on Azure: it provisions nodes from ARM templates, reports progress, rolls back a failed scale-out with an idempotent VM delete, and abandons a join only after 300 cumulative seconds stopped or failed, so slow replication continues.
- Automated online conversion between a single node and a two-data-node Patroni cluster with an etcd witness: new members join etcd as non-voting learners and are promoted back to back once caught up, so etcd has two voters (no fault tolerance) only between the two promotions; the reverse removes members online.
- On a real Azure test cluster, traced a 15.5-minute connection delay on the new node to the etcd learner rejecting Patroni's watch requests (18,600 errors); turning off Patroni's etcd member discovery during the join removed the errors, and the join completed normally.
- Fixed a conversion rollback that deleted the new node's VM but not its etcd member, breaking etcd quorum; rollback now removes members first and leaves the VM in place if a promoted member cannot be removed.
- Configured proxy VIP failover; on Azure, stopping Patroni, the proxy, and etcd on the leader promoted the new data node within 15 seconds, and writes through the VIP reached it. Added real-Azure end-to-end tests for normal and failure paths (etcd down, failed node install, stalled join).
-
PostgreSQL C extensions (Oracle compatibility)
- Designed and implemented Oracle's DBMS_RLS row-level security API as a C extension: a planner_hook replaces each protected table with a filtered subquery, recursing into subqueries, CTEs, and sublinks; policy functions run with definer rights, Oracle's
sec_relevant_colsoption applies a policy only when given columns are referenced, written rows are optionally checked through WithCheckOption, and an object_access_hook drops policies with their table. - Fixed a customer-reported privilege defect by parsing policy predicates with the querying user's privileges.
- Fixed backend crashes in NVL (a
returninsidePG_TRYcrashed a later failing query; added a regression test) and DBMS_ALERT (a NULL shared hash entry); implemented EXISTSNODE and extended NVL/NVL2, DUMP, DBMS_RANDOM, and DBMS_ALERT in C, including releasing its session subscriptions in dynamic shared memory at exit.
- Designed and implemented Oracle's DBMS_RLS row-level security API as a C extension: a planner_hook replaces each protected table with a filtered subquery, recursing into subqueries, CTEs, and sublinks; policy functions run with definer rights, Oracle's
-
Connection routing and performance diagnosis (pgcat-based Rust proxy)
- Investigated a customer's higher primary CPU via the proxy: a throughput-matched reproduction showed similar backend CPU direct and proxied (291% vs 295%), and pgJDBC autocommit off pinned all traffic to primary.
- Extended the proxy to route
BEGIN READ ONLYtransactions, which wrapped the customer's recursive-CTE query, to replicas when primary reads are disabled; a fixed-rate pgJDBC benchmark moved them all to the replica while UPDATEs stayed on primary.
2) SuperTibero Team (Oct 2023 - Oct 2024): proprietary RDBMS with distributed storage.
- SQL compiler (C++): parser, query transformer, cost-based optimizer
- Fixed index range scan cardinality and selectivity estimation that forced index full scans for
<predicates, repaired sort elimination, improved plan cache matching, and fixed stale plans on dropped sequences. - Designed and implemented predicate pull-up and push-down across 22 logical-plan node types, pushing only into branches each join type (semi, anti, outer) allows, and IN-to-EXISTS conversion for semi-join unnesting.
- Designed and implemented predicate derivation for non-equi joins and compound expressions, pushdown into set-operation branches, rewriting a = a to a IS NOT NULL, and dropping redundant or contradictory predicates.
- Designed and implemented the privilege check at hard parse for SELECT, INSERT, UPDATE, DELETE, and MERGE, caching checked permissions so the same privilege is not checked twice; changed AST traversal from two passes to one and fixed parser bugs in partitioned-table INSERT and Oracle joins with bind parameters.
- Fixed index range scan cardinality and selectivity estimation that forced index full scans for
-
PostgreSQL
- Authored a recovery-target fix committed to PostgreSQL master for PostgreSQL 20 (d5751c33cc3): made the effective point-in-time recovery target depend on the final configuration rather than GUC assignment order, moved cross-parameter validation out of assign hooks, and added recovery tests.
- Reviewed CommitFest patches and found a lost-wakeup race in standby pin-count waiter registration (CF 7372) and a second slot invalidator able to terminate the first (CF 7203), both fixed by the authors.
-
TimescaleDB
- Fixed continuous-aggregate refresh skipping the last variable-width bucket: an inclusive invalidation end was passed to code expecting an exclusive end, leaving the bucket stale or unmaterialized without an error. Closed two reported issues (#10419, merged October 2026, backported to 2.31.x).
-
multigres-mcp (author, GitHub)
- Built a Go MCP (Model Context Protocol) server for Multigres (Vitess for Postgres, developed at Supabase) for diagnostics and cluster operations; read-only SQL passes a parse-tree allow-list, a read-only connection, and an always-rolled-back READ ONLY transaction.
- B.S. in Physics, Yonsei University, Seoul (focus: Statistical Mechanics, Quantum Mechanics)
- Top 4.2% Contributor on LeetCode (Consecutive years: 2023, 2024)



