You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extensions for PostgreSQL are traditionally written in C, but in some cases you might want to write the extension in C++ but still interface with standard PostgreSQL code. Normally, you can just include the PostgreSQL file wrapped in extern "C", but it can be useful to have some additional tools to make it easy to do some of the work.
The use of setjmp/longjmp for error reporting makes it more complicated to use the full power of C++, but in many cases this is not necessarily a problem. For example, RAII model can be used for cases where functions cannot error out.
How
Some ideas for simplifications that might be useful.
C++ iterators for PostgreSQL List type
The text was updated successfully, but these errors were encountered:
What
Extensions for PostgreSQL are traditionally written in C, but in some cases you might want to write the extension in C++ but still interface with standard PostgreSQL code. Normally, you can just include the PostgreSQL file wrapped in
extern "C"
, but it can be useful to have some additional tools to make it easy to do some of the work.The use of
setjmp
/longjmp
for error reporting makes it more complicated to use the full power of C++, but in many cases this is not necessarily a problem. For example, RAII model can be used for cases where functions cannot error out.How
Some ideas for simplifications that might be useful.
List
typeThe text was updated successfully, but these errors were encountered: