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 1w1GyQ-0009lu-39 for pgsql-general@arkaria.postgresql.org; Sat, 14 Mar 2026 04:51:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w1GyP-000xzj-24 for pgsql-general@arkaria.postgresql.org; Sat, 14 Mar 2026 04:51:38 +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 1w1GyO-000xzb-1s for pgsql-general@lists.postgresql.org; Sat, 14 Mar 2026 04:51:38 +0000 Received: from fhigh-b4-smtp.messagingengine.com ([202.12.124.155]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w1GyL-000000004d4-2e1t for pgsql-general@lists.postgresql.org; Sat, 14 Mar 2026 04:51:37 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfhigh.stl.internal (Postfix) with ESMTP id 504CA7A005F; Sat, 14 Mar 2026 00:51:31 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Sat, 14 Mar 2026 00:51:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1773463891; x=1773550291; bh=rxQROQ+CbiPZVJT4sekt3IJRe46xKdH6MLlknQyjnTc=; b= jM+TZSHeOQMw3EgpxNgwU/pAhoutWnYOu5soCQAgg6XjBBU+xeLx/5XoEvtxge6P BtYxxwIIqrsWd4nabX7VGAPfPoKxYye+mEsS5tWCs2JcSRDUNHagrULAhARgIkEc 6zgQn06NLIjRIKrm8AkODDTdik1APy+3X8+BIHi1AuMUMUZ1pYBVplLjR10079gl /7sGad5x/N3I5JvBsT7CpuKIoaqPyRxVGQxW8s6cQUhydqOxG0m+wO5q4Uii4KY6 m+HBnmgD9fOI5/TyXQ1Kzu2HgshEKy2cinKlx3+KQ/Z7mNHI2IblvzjOHGPfZ3TR Tomx39nqo6sBM8/3AR3wRA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1773463891; x=1773550291; bh=r xQROQ+CbiPZVJT4sekt3IJRe46xKdH6MLlknQyjnTc=; b=cje4NKYhoI6Lp8aHV RFiIXOPb5aJGBbnJJqufF61avpXIuIS43TCWTJbDRWYF/VUxAQ3MU8L4ToPtArdo WJy8p0sSUrAlnX/eK3TLfjBd/P6iL87ncMHuLU2+iEXsujuOhMW6IU5I80swV+aa S0Po6xFoyHY6tPX3yLQk8Nc95CIbsD1EZpnysIHgf6Z9lJOOd+OskR5/ZXXbprO1 TILT6ITMSOh6SliOySBf7QQYmFUQ+SYq9M+/dMS+QgY+9FboHF7moVPCDpjvWlHy JNiBkCq58HbjzwsGCm19F1ceFVMVmbHy2SNobnSJJeLTHtSDT1e1Tmx1xgaaIu1q VUsMA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvleduieefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeenucfhrhhomheptegurhhirghn ucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqe enucggtffrrghtthgvrhhnpeekffevkeduhfevhfetfedtjeetheeffffhueduledtieek ffduuddtkeehjedtvdenucffohhmrghinhepphhqgiigrdhorhhgnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgv rhesrghklhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtph houhhtpdhrtghpthhtohepihhkohhrohhttddusehgmhgrihhlrdgtohhmpdhrtghpthht ohepphhgshhqlhdqghgvnhgvrhgrlheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorh hg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 14 Mar 2026 00:51:30 -0400 (EDT) Message-ID: Date: Fri, 13 Mar 2026 21:51:29 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: libpq usage from C++ To: Igor Korot , "pgsql-generallists.postgresql.org" References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/13/26 9:40 PM, Igor Korot wrote: > Hi, ALL, > > Does anybody use libpq from C++? Search engine of choice: libpq c++ yields: https://pqxx.org/development/libpqxx/ > > 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"? > > Thank you. > > -- Adrian Klaver adrian.klaver@aklaver.com