Update C++ libpqxx docs for libpqxx 8 and Ubuntu 26.04#179
Open
bandle wants to merge 1 commit into
Open
Conversation
- Warn that Ubuntu 26.04's libpqxx-dev (7.10) has a double-free, with instructions to build libpqxx 8.0.1 from source
- Update compile command to c++23
- Update insert API from exec_prepared to exec(pqxx::prepped{}, pqxx::params{})
- Replace `using namespace std` with explicit std:: prefixes
pfent
reviewed
Jun 12, 2026
| ``` | ||
|
|
||
| {{% callout type="warning" %}} | ||
| The `libpqxx-dev` package in Ubuntu 26.04 ships libpqxx 7.10, which [crashes on exit](https://github.com/jtv/libpqxx/issues/1195) due to a double-free in `pqxx::internal::demangle_type_name`. Build libpqxx 8 from source instead: |
Contributor
There was a problem hiding this comment.
Suggested change
| The `libpqxx-dev` package in Ubuntu 26.04 ships libpqxx 7.10, which [crashes on exit](https://github.com/jtv/libpqxx/issues/1195) due to a double-free in `pqxx::internal::demangle_type_name`. Build libpqxx 8 from source instead: | |
| The `libpqxx-dev` package in Ubuntu 26.04 ships libpqxx 7.10, which [crashes on exit](https://github.com/jtv/libpqxx/issues/1195) due to a double-free in `pqxx::internal::demangle_type_name`. We recommend building libpqxx 8 from source instead: |
pfent
approved these changes
Jun 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
using namespace stdwith explicit std:: prefixes