Re: PostgreSQL stops when adding a breakpoint in CLion

2022-01-04 Thread Stanislav Bashkyrtsev
see that errno == EINTR when it happens. This is as much as I can figure out in C, so I'm leaving it at that. Your advice about debugging the backend process ("select pg_backend_pid()") instead of running in a single-user mode worked for me, thank you! On Tue, Jan 4, 2022 at 1:02 AM

Re: PostgreSQL stops when adding a breakpoint in CLion

2022-01-03 Thread Stanislav Bashkyrtsev
10:08 PM Tom Lane wrote: > Tomas Vondra writes: > > On 1/3/22 16:54, Stanislav Bashkyrtsev wrote: > >> - If I put a breakpoint before I start the process then everything > works > >> fine > >> - But if I put/remove a breakpoint after it's fully initiali

PostgreSQL stops when adding a breakpoint in CLion

2022-01-03 Thread Stanislav Bashkyrtsev
I tried debugging PostgreSQL to better understand how it works. It worked fine a day ago, but for some reason I have issues with debugging now: - If I put a breakpoint before I start the process then everything works fine - But if I put/remove a breakpoint after it's fully initialized - the proces