<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/look-ma-i-wrote-a-new-jit-compiler-for-postgresql-pinaraf-s-website-y9mjsuv4t" -->

---
title: Look ma, I wrote a new JIT compiler for PostgreSQL –...
description: A developer shares their experience building a new JIT compiler for PostgreSQL, using the copy-and-patch methodology. They discuss the limitations of using...
canonical: https://daily.dev/posts/look-ma-i-wrote-a-new-jit-compiler-for-postgresql-pinaraf-s-website-y9mjsuv4t
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Look ma, I wrote a new JIT compiler for PostgreSQL – Pinaraf&#x27;s website | daily.dev
og:description: A developer shares their experience building a new JIT compiler for PostgreSQL, using the copy-and-patch methodology. They discuss the limitations of using...
og:url: https://daily.dev/posts/look-ma-i-wrote-a-new-jit-compiler-for-postgresql-pinaraf-s-website-y9mjsuv4t
og:image: https://api.daily.dev/og/posts/Y9mjSUv4T.png
og:image:alt: Look ma, I wrote a new JIT compiler for PostgreSQL – Pinaraf&#x27;s website
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Look ma, I wrote a new JIT compiler for PostgreSQL – Pinaraf's website

**[Hacker News](https://daily.dev/sources/hn)** · 9 min read · 2 upvotes · 0 comments

## Summary

A developer shares their experience building a new JIT compiler for PostgreSQL, using the copy-and-patch methodology. They discuss the limitations of using LLVM as a JIT compiler and explain how copy-and-patch provides a faster and more efficient alternative. The developer also provides benchmarks comparing the performance of the JIT engine to the PostgreSQL interpreter.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.pinaraf.info/2024/03/look-ma-i-wrote-a-new-jit-compiler-for-postgresql/>

---

Tags: [#cpython](https://daily.dev/tags/cpython), [#general-programming](https://daily.dev/tags/general-programming), [#performance](https://daily.dev/tags/performance), [#postgresql](https://daily.dev/tags/postgresql)

[View this post on daily.dev](https://daily.dev/posts/look-ma-i-wrote-a-new-jit-compiler-for-postgresql-pinaraf-s-website-y9mjsuv4t)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Look ma, I wrote a new JIT compiler for PostgreSQL – Pinaraf's website","url":"https://daily.dev/posts/look-ma-i-wrote-a-new-jit-compiler-for-postgresql-pinaraf-s-website-y9mjsuv4t","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/look-ma-i-wrote-a-new-jit-compiler-for-postgresql-pinaraf-s-website-y9mjsuv4t"},"datePublished":"2024-03-18T12:44:25.490Z","dateModified":"2026-03-15T05:16:57.679Z","description":"A developer shares their experience building a new JIT compiler for PostgreSQL, using the copy-and-patch methodology. They discuss the limitations of using...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/605e14e402b8940168f3faac843c01b1?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/605e14e402b8940168f3faac843c01b1?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/look-ma-i-wrote-a-new-jit-compiler-for-postgresql-pinaraf-s-website-y9mjsuv4t","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cpython,general-programming,performance,postgresql","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"Look ma, I wrote a new JIT compiler for PostgreSQL – Pinaraf's website"}]}
```

