2

The official postgres documentation (docs) states in section "37.10.11. Using C++ for Extensibility" that

  • If calling backend functions from C++ code, be sure that the C++ call stack contains only plain old data structures (POD). This is necessary because backend errors generate a distant longjmp() that does not properly unroll a C++ call stack with non-POD objects

So, are std::vectors< uint64_t> considered POD or not? I wish I could tell from reading the above instructions but I cannot. Can someone help? Thanks.

asked May 5, 2020 at 6:06

1 Answer 1

1

Yes, they are, because they do not appear in plain C.

answered May 5, 2020 at 7:11

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.