Pg-extend-rs

Infrastructure

database extension framework

SHOW HN2018

244points
22comments
#130of 2,155 in 2018
Top 7%of 2018 by points

How HN took it

LovedMost comments that take a side are positive

5 positive, 3 neutral or asking, 0 mixed, 0 critical, out of 8 comments about the project. Thread score +0.35.

Idea: 4 for, 0 againstPerformance: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Excited to try Rust and Postgres via the library, replacing C pain

    From 1 comment
    • Ohhh this is great! I have had a query planner extension idea for a while but dealing with C bugged me a lot. I think that this might help me try some Rust ans some Postgres
      rtpg on HN
  • Inspires new extension ideas such as full text search and fake data generation

    From 1 comment
    • Curious how tantivvy performs for full text search, in comparison with the native one. This work inspires me. I am going to try to make a fake-rs extension to enable fake data…
      Dowwie on HN

Objections

  • Rust types still need translating to Postgres Datums, so it is incomplete

    From 1 comment
    • As warning, there’s still a bunch of work to translate various types from Rust to Postgres Datums. I’m interested in feedback on the library, so if you use it and experience any…
      bluejekyll on HN
  • Rust-to-C string conversion may add some overhead

    From 1 comment
    • Right now, the only additional overhead I can think of would be on transforms from Rust style Strings and &str's to C style CString and CStr's. Beyond that, I think it should be…
      bluejekyll on HN

Requests

  • Maker asks for feedback and issue reports from users

    From 1 comment
    • As warning, there’s still a bunch of work to translate various types from Rust to Postgres Datums. I’m interested in feedback on the library, so if you use it and experience any…
      bluejekyll on HN

Questions

  • What is the purpose compared to a PL/pgSQL function?

    From 1 comment
  • Does it add overhead compared to C/C++?

    From 1 comment

Alternatives named

  • PL/pgSQL

    From 1 comment
  • Writing extensions in C

    From 1 comment
    • That's a funny comparison. The much more obvious contrast would be to writing a Postgres extension in C. Or are you asking, "why have native DBMS extensions at all?" Looking at…
      derefr on HN
  • Python or JavaScript (V8) Postgres bindings

    From 1 comment
    • PostgreSQL has several bindings, including Python and JavaScript (V8). You might want to do complex value manipulation at the DB-level, like a regex-like operation, or processing…
      paulddraper on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/18776589)