Re: The connection to the server was lost. Attempting reset: Failed.

2019-10-10 Thread Yessica Brinkmann
That is, It worked by changing the code to: if (idxcd == NULL) { elog( INFO, "idxcd IS NULL" ); continue; /* Or is that fatal enough to break instead? */ } if (!idxcd->idxused) continue; Very thanks, Yessica Brinkmann El jue., 10 oct. 2019 a

Re: The connection to the server was lost. Attempting reset: Failed.

2019-10-10 Thread Yessica Brinkmann
Thank you very much for your answer. It helped me. Really now the get_columnnames function is already working and ends cleanly. I have an error in the following function to be executed that generates the same error: The connection to the server was lost. Attempting reset: Failed. I will try to solv

Re: The connection to the server was lost. Attempting reset: Failed.

2019-10-10 Thread Yessica Brinkmann
Thank you so much for your answer. I will be testing the indicated and then I give you return. Best regards, Yessica Brinkmann El jue., 10 oct. 2019 a las 15:25, Jaime Soler () escribió: > Why don't have a try to gdb ? > https://wiki.postgresql.org/wiki/Developer_FAQ#What_debugging_features_are_a

Re: The connection to the server was lost. Attempting reset: Failed.

2019-10-10 Thread Jaime Soler
Why don't have a try to gdb ? https://wiki.postgresql.org/wiki/Developer_FAQ#What_debugging_features_are_available.3F It might be a extra free memory executions or null pointer accesses .. , gdb could help you. Regards El jue., 10 oct. 2019 a las 20:01, Yessica Brinkmann (< yessica.brinkm...@gma

Re: The connection to the server was lost. Attempting reset: Failed.

2019-10-10 Thread Yessica Brinkmann
Thank you very much for the reply. Well, really, resetStringInfo () is a function of the StringInfo data structure. What I used at the end was initStringInfo, which is a function of the data structure StringInfoData, which is what I am using, although I don't know if they are equivalent. The code r

Re: The connection to the server was lost. Attempting reset: Failed.

2019-10-10 Thread Yessica Brinkmann
Thank you so much for your answer. I will be testing the indicated and then I give you return. Best regards, Yessica Brinkmann El jue., 10 oct. 2019 a las 13:15, Alban Hertroys () escribió: > > > On 10 Oct 2019, at 17:55, Yessica Brinkmann > wrote: > > > > I really thought a lot, but I don't und

Re: The connection to the server was lost. Attempting reset: Failed.

2019-10-10 Thread Yessica Brinkmann
Thank you so much for your answer. I will be testing the indicated and then I give you return. Best regards, Yessica Brinkmann El jue., 10 oct. 2019 a las 13:14, Tom Lane () escribió: > Yessica Brinkmann writes: > > I really thought a lot, but I don't understand why but the function fails > > af

Re: The connection to the server was lost. Attempting reset: Failed.

2019-10-10 Thread Alban Hertroys
> On 10 Oct 2019, at 17:55, Yessica Brinkmann > wrote: > > I really thought a lot, but I don't understand why but the function fails > after the expression is executed: > appendStringInfo (& cols, "% s a.attnum =% d", (i> 0? "OR": ""), idxcd-> > varattno [i]); > The error appears only to me

Re: The connection to the server was lost. Attempting reset: Failed.

2019-10-10 Thread Tom Lane
Yessica Brinkmann writes: > I really thought a lot, but I don't understand why but the function fails > after the expression is executed: > appendStringInfo (& cols, "% s a.attnum =% d", (i> 0? "OR": ""), idxcd-> > varattno [i]); I think you're probably shooting yourself in the foot here: