<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
    <dl style="line-height: 1.5; margin-left: 2em">
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
      <dd style="margin-left: 8.5em">Kouhei Sutou &lt;kou****@clear*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2015-04-30 17:00:19 +0900 (Thu, 30 Apr 2015)</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
      <dd style="margin-left: 8.5em"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09">10ea55c7c26dedb1ab82497567e0e4bcfd66dd09</a></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</dt>
      <dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Support HOT update on PostgreSQL 9.3</pre></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
      <dd style="margin-left: 8.5em">
        <ul>
          <li><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#diff-0">pgroonga.c</a></li>
        </ul>
      </dd>
    </dl>

    <div class="diff-section" style="clear: both">
      <table style="border-collapse: collapse; border: 1px solid #aaa">
        <thead>
          <tr class="diff-header" style="border: 1px solid #aaa">
            <td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">  Modified: pgroonga.c (+8 -2)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
            </td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0L915">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0L916">916</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0L917">917</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0L918">918</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0L919">919</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0L920">920</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0L921">921</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0L922">922</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0L923">923</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0L924">924</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0L925">925</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0L926">926</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0L927">927</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0L928">928</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0L929">929</a></span>
</pre>
            </th>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R915">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R916">916</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R917">917</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R918">918</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R919">919</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R920">920</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R921">921</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R922">922</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R923">923</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R924">924</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R925">925</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R926">926</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R927">927</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R928">928</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R929">929</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R930">930</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R931">931</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R932">932</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R933">933</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R934">934</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/pgroonga/pgroonga/commit/10ea55c7c26dedb1ab82497567e0e4bcfd66dd09#L0R935">935</a></span>
</pre>
            </th>
            <td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -916,14 +916,20 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">PGrnIsAliveCtid(Relation table, ItemPointer ctid)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">         ItemPointerData realCtid;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         bool allDead;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         bool found;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-        bool isAlive;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        bool isAlive = false;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre">         buffer = ReadBuffer(table, ItemPointerGetBlockNumber(ctid));</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         snapshot = RegisterSnapshot(GetLatestSnapshot());</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         realCtid = *ctid;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         found = heap_hot_search_buffer(&amp;realCtid, table, buffer, snapshot, &amp;tuple,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                                                                    &amp;allDead, true);</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-        isAlive = (found &amp;&amp; CtidToUInt64(&amp;(tuple.t_self)) == CtidToUInt64(ctid));</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        if (found) {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+                uint64 tupleID;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+                tupleID = CtidToUInt64(&amp;(tuple.t_self));</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+                isAlive = (tupleID == CtidToUInt64(ctid) ||</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+                                   tupleID == CtidToUInt64(&amp;realCtid));</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        }</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         UnregisterSnapshot(snapshot);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         ReleaseBuffer(buffer);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>