Skip to main content
1 vote
1 answer
44 views

My problem is that this doesn't scale very well with more and more time ranges: WITH ranges AS ( SELECT tsrange($1::timestamptz, $2::timestamptz, '[]') AS r UNION ALL SELECT tsrange($3::...
glades's user avatar
  • 5,374
3 votes
2 answers
131 views

I’m using libpqxx to run SQL scripts. For most DDL and DML this works fine, but I’ve run into a problem with statements that cannot be executed inside a transaction block, e.g. CREATE DATABASE mydb; ...
Soroush Rabiei's user avatar
3 votes
2 answers
167 views

I need to support a new type (OuterType) for libpqxx. This type is located in namespace partner, also namespace contains free function to_string(const OuterType&), which returns wrapper around ...
ValFF's user avatar
  • 35
0 votes
1 answer
174 views

I can't seem to link libpqxx. The program: #include <pqxx/pqxx> int main() pqxx::connection connection(""); return 0; } The command to compile: g++ -std=c++23 -arch arm64 x....
StuKers's user avatar
  • 41
1 vote
1 answer
172 views

when trying to connect to the database the following error appears error text terminate called after throwing an instance of 'pqxx::broken_connection' what(): connection to server on socket "/...
zxctatar's user avatar
  • 133
0 votes
0 answers
153 views

After building the code when run the executable I get error ./test_pq: error while loading shared libraries: libpqxx-6.2.so: cannot open shared object file: No such file or directory Example of my ...
Bhavna Sehgal's user avatar
-2 votes
1 answer
321 views

In my app I am reading and writing to the database using pqxx::work, which resolves to using work = transaction<>. Taking the read as a case in point, it is a single, albeit relatively complex, ...
TooTone's user avatar
  • 8,277
0 votes
0 answers
130 views

I added libpqxx (pqxx) via vcpkg to CMake project, however it's failed while building. Here is CMake code: find_package(libpqxx CONFIG REQUIRED) target_link_libraries(PqDataBase PRIVATE libpqxx::pqxx)...
muhammed_h's user avatar
1 vote
0 answers
100 views

The code below uses libpqxx C++ library to listen to two trigger signals coming from a TimescaleDB database. There are two infinite loops to wait until a trigger occurs. while (true){ conn....
shashashamti2008's user avatar
0 votes
1 answer
109 views

I am trying to subscribe to two different notifications using libpqxx. I found this unit test which I modified to serve my objective. class TestListener final : public pqxx::notification_receiver { ...
shashashamti2008's user avatar
0 votes
0 answers
74 views

I am trying to listen to an event in a PostgreSQL database when a table is updated. The trigger is created in the database and I would like to have libpqxx listen to the trigger signal. I have tried ...
shashashamti2008's user avatar
0 votes
0 answers
146 views

i encounter problems while building an c++ app with pqxx library. I installed this library with c++ package manager called vcpkg. Other libraries like boost or curl work but pqxx not. I there some ...
Big_Smoke's user avatar
0 votes
1 answer
379 views

this error appeared when compiling the libpqxx library ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-...
GiuCom's user avatar
  • 15
0 votes
0 answers
801 views

I am trying to develop a database app using PostgreSQL with VS2022 in C++. I have successfully installed Postgres 16.1-1 software and a data directory in my Documents directory. I unzipped libpqxx-7....
DRF's user avatar
  • 13
0 votes
2 answers
115 views

I have a function that looks like this template <typename... Rets, typename... Args> std::tuple<Rets...> call_nn(std::string_view query, Args... args) { pqxx::work w(con_); pqxx::row ...
Daniil Rozanov's user avatar

15 30 50 per page
1
2 3 4 5
17