#libpq

Prague PostgreSQL Dev Dayp2d2
2026-01-28

Fuzzing PostgreSQL at the front door 🔍

Adam Wołk Microsoft shows how fuzzing uncovers edge-case bugs in libpq and . Learn how to build harnesses, mutate protocol inputs, and harden Postgres networking code against real-world failures. p2d2.cz/en/talks/knocking_at_t

#OpenSource

2021-05-23

- On #Unix, forking a process with open #libpq connections can lead to unpredictable results because the parent and child processes share the same sockets and operating system resources

I faced a strange thread-related segfault in libpq. in musl, I must add, because this may be a problem of glibc non-standard behavior that often is used in code and then programs fail on musl. I will run the test in glibc chroot too, just to get sure it's not a principal bug in the library code.
but for a while I cannot say where exactly it is. program fails in PQfnumber when another thread exists poll in PQgetResult. it happens not often, I tested my utility on high load requests traffic and at 40 000 requests per second it happens once in an hour or so. I'm sure that this should not happen because threads use thread local DB connections. but it does. the past night I caught 3 core dumps with the same segfault conditions and now have to debug PostgreSQL library to find out what the problem is. not that I'm too happy to do this but I have to.
#programming #postgresql #c #libpq #bugs #musl
Abbie Normalcatonano
2018-04-03

Ok, I want to link to from Guile

What do I write in the configure.ac file in order to check if libpq is available and where is it ?

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst