Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w1GuF-0009iS-0t for pgsql-general@arkaria.postgresql.org; Sat, 14 Mar 2026 04:47:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w1GuC-000vC0-1u for pgsql-general@arkaria.postgresql.org; Sat, 14 Mar 2026 04:47:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w1GuC-000vBr-0r for pgsql-general@lists.postgresql.org; Sat, 14 Mar 2026 04:47:17 +0000 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w1GuA-000000004bA-1BW7 for pgsql-general@lists.postgresql.org; Sat, 14 Mar 2026 04:47:16 +0000 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-7d773a4af0aso1426481a34.0 for ; Fri, 13 Mar 2026 21:47:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773463632; cv=none; d=google.com; s=arc-20240605; b=Q6O9qFZyqlljnnw8rNs8hE0jG3qMcmU9yX82eCuFVfWNEIKgeZ5wQ9vGF1fL/kW6Tm miMBiGl6jrCplRCTj7WpPU6aouzAS5BtkYBpODug8alzGId0NlpJZhN2NbLjz5hcqAfz 6VVZE7LnUL3KHxVKrOraJ186f5gznMz5lsakFx/V26aUwQ2TtEk9HXnL2YDeJG/Y2yAd WB9TQXUrD9s4Bd4Di/3qnvGKjklqCnldFDr7+/MJeSJS04DwRFP8mpyP+d8YDvPcINXl oizI7EDRJhk0XJuSecFegzVu33PVc8ghQgwGTWatFCmbxjwPlZFt+T9xR5HTW6iFUom3 7+Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=FOLBQvRfs2zDIojbvKGbtgd5YWCwOcMrWbITGMwReJI=; fh=2DoGC78b0mi8uZ4UY+9ocPF86GSVzeaJWqou/x907js=; b=hDWs2lojGakRUXN0QS8Ah8ZVO3oh6jzdjaHovRfvVPKruZx3LhzCVSsc3dtDyBwVOZ 6WLr1AECwoxLYwRYJsQDV/Hq3hlg2HFaOHwAVcvDs9Z8DjB7FhmtiEuEOH38ffj7Iao1 hVloaP46pRzjqg5CVO3j206Wm58QIvJ+5h2kcsToKt75+wNOGxtMIDDmr0wU+ALyblPT 42mmVi9UsFYkkKaSCbxx5hXr1lXmkbXmaXwWpyrw79InSXRqG0H2iHKkvPA7wdKgfwAz vSMR2KBvKsy0E0bwY/jMhVnJ6KWs4w96nymbH9TAuRKeNE4hKS9ToPBlZxTggV2jhP3l 0uAw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773463632; x=1774068432; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=FOLBQvRfs2zDIojbvKGbtgd5YWCwOcMrWbITGMwReJI=; b=d5NXJtmUglmnvzsp+bj3qkoXbHu5edQ/OATEhFfbaNET6y3iRMHTiauUYP1XwAufyk KF5Rq8utrY5mNAUDQnuF7XoQFskp5+wWMYlUv/RGIM4T7P8vlmfH+pR3hqBOLl9xVdUY 62mywQp+bFHxdf06MxUy7rioF748qQPoO1rO+HhMo7vYsjUzkDjcY1MegUrYuMsTtwK1 diy864ZUgB8jAcwdIpkT/H460W5ZKnFag5PB8LwNhvoZ2Vmq4OLDvCJ6d0m3SSXfSxaz jjqXj/1ov4rrgbet2MQHj2AJ9FVLdi4Rz+05aOSK2CIy5WcFXPZTit+uJdFFf04osjkY blqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773463632; x=1774068432; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FOLBQvRfs2zDIojbvKGbtgd5YWCwOcMrWbITGMwReJI=; b=KbSMdmyN2vIsHvYn1H0zUZcWyoXck2I9mTrX3TqwcWO8W6yMXXS2Vb/5915Fifeglp cRlb9QHq2t24C6wWh9zqY3hwmBS3IPdhEJiZkrs+TwIKXBuhSC+hot9XKwjGyyDqrt51 pnbhq7IG1hKCvTmvpFzENfhroOfV16HlTiiol9Z5IIVvC94sDxKbZsiJdpYmqlOJZZ7Y SHmsUYwIW3WeM2K9TzSv1TApNNDQlZpxf5/HiShYXNdRHEwv9DGsaM3nhkiOHL1RMM6X wH5Fyn5kGFUgI21ocDJOlZnT/rJmRlF9YrruDmmguHwKSYxeqOTTIrAAzYupxUnEu5tn MYvQ== X-Gm-Message-State: AOJu0YzbkErKBPZUE5Rm/uD7D5KA5avyYbmq3A2Kius53L34V+JSUDNO oKJyxTTV+EAfYemFuRArDCXDILAZS2mrfG3muAQg0pcdTiJDZS9ua9+fJ59Lb7d0F4yP/B7obFu R0MpNvtRjsJgI+gGMrerGgR58RTIyxVPfcw== X-Gm-Gg: ATEYQzyQkDrHtBF7WmMlbOyqydczmPlVtupU0zrRxNlSfl5mnd6hxwasqvNmOBiYfWE MkjAxDDC3bsxUzvtZSiaGUbCopT80wQ42+oG0EuMeGRitj6yMNrwEv3uYmIDU7kbtLogrtpJ6L1 u8Jf2UltN7brQw2ephVr+8XQ+wIvfI0RmkQtH/SoQVAnH9Lw0hKN8QavgIYwiR7tRanCivXwwXv GnJvCrDrTZjPQKF9Wg5Pu0+okEG4b5MN9BcC0+E9WX8h2zy81q9D+reoRh0aVEbBwqE2mAT6Pea jftMPuJh X-Received: by 2002:a05:6830:6abb:b0:7ca:c803:f539 with SMTP id 46e09a7af769-7d78242a324mr3977809a34.5.1773463631981; Fri, 13 Mar 2026 21:47:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ron Johnson Date: Sat, 14 Mar 2026 00:47:00 -0400 X-Gm-Features: AaiRm53SZl_owT-eGVNn5_8BMDaF4--NqA3Izk27h3mZauVwTGoyHMvw6RbFuXk Message-ID: Subject: Re: libpq usage from C++ To: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000ce6ff7064cf4adc4" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000ce6ff7064cf4adc4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Mar 14, 2026 at 12:41=E2=80=AFAM Igor Korot wr= ote: > Hi, ALL, > > Does anybody use libpq from C++? > > C++ introduces STL. > C++ introduces smart-pointers. > > Is there a simple way of using those writing libpq communication? > > Or should I just forget about them and use good old "dump pointers"? > Maybe use an existing libpq wrapper for c++? --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --000000000000ce6ff7064cf4adc4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Mar 14, 2026 at 12:41=E2=80=AFAM = Igor Korot <ikorot01@gmail.com= > wrote:
Hi, ALL,

Does anybody use libpq from C++?

C++ introduces STL.
C++ introduces smart-pointers.

Is there a simple way of using those writing libpq communication?

Or should I just forget about them and use good old "dump pointers&quo= t;?

Maybe use an existing libpq wrapper= for c++?

= --
D= eath to <Redacted>, and butter sauce.
Don't boil me, I'm = still alive.
<Redacted> lobster!
=
--000000000000ce6ff7064cf4adc4--