Re: Problems with MemoryContextSwitchTo ()

From: Yessica Brinkmann <brinkmann(dot)yessica(at)gmail(dot)com>
To: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Problems with MemoryContextSwitchTo ()
Date: 2020-09-16 13:03:20
Message-ID: -ui87xu-ipownatbr9b5-if0amt8lqyrfxhz2m3-a7rfdd4z912g-wtridfxn5ygg-isklt3rm7it8-7t5iymm70yx8-kvie69j51kvxns1jyb-ezexoz-sml486dzlc224cn8sw8mtx43-szwit7-uebqhp.1600261400149@email.android.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Good Morning.<br><br>I will greatly appreciate a help please on this subject.I actually did several tests already and tried a lot to fix it myself. But I am not able to. And I really need to know this in order to finish my university thesis. If someone can help me please.<br><br>Best regards,<br><br>Yessica Brinkmann<br><br><br><div class="quote" style="line-height: 1.5"><br><br>-------- Mensaje original --------<br>Asunto: Problems with MemoryContextSwitchTo ()<br>De: Yessica Brinkmann <brinkmann(dot)yessica(at)gmail(dot)com><br>Para: pgsql-general(at)lists(dot)postgresql(dot)org<br>CC: <br><br><br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
<table class="gmail-Bs gmail-nH gmail-iY gmail-bAt" cellpadding="0"><tbody><tr><td class="gmail-Bu gmail-bAn"><br></td><td class="gmail-Bu gmail-yM"><br></td><td class="gmail-Bu gmail-y3">
Hello.<br>
I think several of you will already remember me. I&#39;m the one with the IndexAdviser topic. Only that I changed my email address.<br>
As you may recall, I am doing my thesis on the subject of IndexAdviser modifications.<br>
I really appreciate the help they have given me in various Postgresql groups.<br>
Well, I was really nearing the end of the programming part of the
thesis, when I had a problem to be able to compile my program in a
moment, and by accident some lines of source code were moved.<br>
And for this reason, I think I have problems again with the context
switch issue, since at some point my context switch stopped working for
me, I think because of the issue that some lines of source code were
moved.<br>
Well, the fact is that I have a function called get_columnnames, which
in the second foreach, is printing the values of idxcd-&gt;
varattnnames [i] the null value.<br>
This second foreach, I only do it to test if the data is really saved well and if I can recover it properly.<br>
And since the data is not retrieved properly, or is not saved properly,
in the following functions of my program, the value of idxcd-&gt;
varattnnames [i] continues to appear as null.<br>
I will appreciate a lot please help, if you can tell me please why the
function prints null in the values of idxcd-&gt; varattnnames [i], in
the second foreach, if it is due to an error in the context switch, or
why it could be .<br>
<div class="gmail-oSioSc"><div id="gmail-tw-target"><div id="gmail-kAz1tf" class="gmail-g9WsWb"><div class="gmail-tw-ta-container gmail-hide-focus-ring gmail-tw-nfl" id="gmail-tw-target-text-container" tabindex="0"><pre class="gmail-tw-data-text gmail-tw-text-large gmail-XcVN5d gmail-tw-ta" id="gmail-tw-target-text" style="text-align:left" dir="ltr"><span lang="en">I send my function as an attachment.</span></pre></div></div></div></div>

<br>
Best regards,<br>
Yessica Brinkmann.

</td></tr></tbody></table>

</div>
</blockquote></div>

Attachment Content-Type Size
unknown_filename text/html 2.9 KB

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Yessica Brinkmann 2020-09-16 13:09:21 Re: Problems with MemoryContextSwitchTo ()
Previous Message Ben 2020-09-16 11:47:57 Re: Obvious data mismatch in View2 which basically SELECT * from View1