<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:inherit;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
code
{mso-style-priority:99;
font-family:"Courier New";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
span.pln
{mso-style-name:pln;}
span.com
{mso-style-name:com;}
span.kwd
{mso-style-name:kwd;}
span.pun
{mso-style-name:pun;}
span.str
{mso-style-name:str;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:42.5pt 42.5pt 42.5pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=UK><div class=WordSection1><p class=MsoNormal style='background:white;vertical-align:baseline'><span lang=EN-US style='color:black'>Hey, </span><span style='font-size:10.0pt;font-family:"inherit",serif;color:#242729'><o:p></o:p></span></p><div style='margin-bottom:3.75pt;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch: inherit;box-sizing: inherit;overflow-wrap: break-word'><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;background:white;vertical-align:baseline'><span style='font-size:11.5pt;color:#242729'>Pgsql is unable to perform indexed full text search onto jsonb column containing an array when looking for the first row in the table.<br><br></span><span lang=EN-US style='font-size:11.5pt;color:#242729'>Any ideas why this is happening?</span><span style='font-size:11.5pt;color:#242729'><o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch: inherit;line-height:inherit;box-sizing: inherit'><span style='font-size:11.5pt;color:#242729'>Table is nothing more than just </span><code><span style='font-size:10.0pt;font-family:"Calibri",sans-serif;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>Id</span></code><span style='font-size:11.5pt;color:#242729'> and </span><code><span style='font-size:10.0pt;font-family:"Calibri",sans-serif;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>Foo</span></code><span style='font-size:11.5pt;color:#242729'> which is </span><code><span style='font-size:10.0pt;font-family:"Calibri",sans-serif;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>jsonb</span></code><span style='font-size:11.5pt;color:#242729'> column.<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch: inherit;line-height:inherit;box-sizing: inherit'><span style='font-size:11.5pt;color:#242729'>The case is that I have an empty database with predefined gin index </span><code><span style='font-size:10.0pt;font-family:"Calibri",sans-serif;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>repro_fts_idx</span></code><span style='font-size:11.5pt;color:#242729'> on </span><code><span style='font-size:10.0pt;font-family:"Calibri",sans-serif;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>make_tsvector</span></code><span style='font-size:11.5pt;color:#242729'> function. </span><code><span style='font-size:10.0pt;font-family:"Calibri",sans-serif;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>make_tsvector</span></code><span style='font-size:11.5pt;color:#242729'> creates </span><code><span style='font-size:10.0pt;font-family:"Calibri",sans-serif;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>tsvector</span></code><span style='font-size:11.5pt;color:#242729'> from given </span><code><span style='font-size:10.0pt;font-family:"Calibri",sans-serif;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>jsonb</span></code><span style='font-size:11.5pt;color:#242729'> column.<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;background:white;vertical-align:baseline;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch: inherit;line-height:inherit;box-sizing: inherit'><span style='font-size:11.5pt;color:#242729'>When I add a new item into the table, I expect it to appear in </span><code><span style='font-size:10.0pt;font-family:"Calibri",sans-serif;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>make_tsvector</span></code><span style='font-size:11.5pt;color:#242729'> function in a form of </span><code><span style='font-size:10.0pt;font-family:"Calibri",sans-serif;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>tsvector</span></code><span style='font-size:11.5pt;color:#242729'>. It's there. Also, I expect that if I run full text search query onto it, it would appear in search results. However, this is not the case because it returns empty specifically for the first row. It simply does not take it into account. If I add one more row which is completely the same, the system is able to find it with the same query.<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;background:white;vertical-align:baseline;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch: inherit;line-height:inherit;box-sizing: inherit'><span style='font-size:11.5pt;color:#242729'>here is a small repro case:<o:p></o:p></span></p><pre style='background:#EFF0F1;vertical-align:baseline;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch: inherit;line-height:inherit;box-sizing: inherit;max-height: 600px;border-radius: 3px;overflow-wrap: normal;overflow:auto'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p> </o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=com><span style='font-family:"inherit",serif;color:#858C93;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>-- drop table cp."Repro" cascade</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p> </o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>CREATE</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>TABLE</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> cp</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.</span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>"Repro"</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>(</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>"Id"</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> serial </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>NOT</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>NULL</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>,</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>"Foo"</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> jsonb </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>NULL</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>);</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p> </o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>CREATE</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>OR</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> REPLACE </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>FUNCTION</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> cp</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>make_tsvector</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>(</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>in_t cp</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.</span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>"Repro"</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>)</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> RETURNS tsvector<o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> LANGUAGE plpgsql<o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> IMMUTABLE<o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>AS</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>$</span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>function</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>$</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>begin</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> <o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>return</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> to_tsvector</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>(</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>jsonb_agg</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>(</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>x</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>prop</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>))</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>from</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>(</span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>SELECT</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> CONCAT</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>(</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> jsonb_array_elements</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>(</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>in_t</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.</span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>"Foo"</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>)</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>->></span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>'Name'</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>,</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>' '</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>,</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> jsonb_array_elements</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>(</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>in_t</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.</span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>"Foo"</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>)</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>->></span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>'Address'</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>)</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>as</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> prop </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>from</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> cp</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.</span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>"Repro"</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> f</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>)</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>as</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> x</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>;</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>END</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>;</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>$</span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>function</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>$</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>;</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p> </o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p> </o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>CREATE</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>INDEX</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> repro_fts_idx </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>ON</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> cp</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.</span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>"Repro"</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>USING</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> gin </span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>(</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>cp</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>make_tsvector</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>(</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>cp</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.</span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>"Repro"</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.*))</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>WITH</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>(</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>fastupdate</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>=</span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>off</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>,</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> gin_pending_list_limit</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>=</span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>'64'</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>);</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p> </o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p> </o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>INSERT</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>INTO</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> cp</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.</span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>"Repro"</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>(</span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>"Foo"</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>)</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>VALUES</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>(</span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>'[{"Name": "Sup", "Address": "Adress", "IsCurrent": true}]'</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>);</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p> </o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=com><span style='font-family:"inherit",serif;color:#858C93;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>-- just in case it's the indexing issue</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=com><span style='font-family:"inherit",serif;color:#858C93;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>-- REINDEX INDEX cp.repro_fts_idx;</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p> </o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>select</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>*</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>from</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> cp</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.</span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>"Repro"</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p> </o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>select</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> cp</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>make_tsvector</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>(</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>x</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>)</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>from</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> cp</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.</span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>"Repro"</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> x<o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p> </o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>select</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>*</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>from</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> ts_stat</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>(</span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>'select cp.make_tsvector(x) from cp."Repro" x'</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>)</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p> </o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=com><span style='font-family:"inherit",serif;color:#858C93;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>-- explain analyze</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>SELECT</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>*</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>FROM</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>"cp"</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.</span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>"Repro"</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> x </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>where</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> cp</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>make_tsvector</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>(</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>x</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>)</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>@@</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>'sup:*'</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>::</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>tsquery<o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p> </o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p> </o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>INSERT</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>INTO</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> cp</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.</span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>"Repro"</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>(</span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>"Foo"</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>)</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>VALUES</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>(</span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>'[{"Name": "Sup", "Address": "Adress", "IsCurrent": true}]'</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>);</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p> </o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p> </o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=com><span style='font-family:"inherit",serif;color:#858C93;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>-- explain analyze</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>SELECT</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>*</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'><o:p></o:p></span></span></pre><pre style='background:#EFF0F1;vertical-align:baseline'><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>FROM</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>"cp"</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.</span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>"Repro"</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> x </span></span><span class=kwd><span style='font-family:"inherit",serif;color:#101094;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>where</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> cp</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>.</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>make_tsvector</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>(</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>x</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>)</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>@@</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'> </span></span><span class=str><span style='font-family:"inherit",serif;color:#7D2727;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>'sup:*'</span></span><span class=pun><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>::</span></span><span class=pln><span style='font-family:"inherit",serif;color:#303336;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1'>tsquery</span></span><span style='font-family:Consolas;color:#393318'><o:p></o:p></span></pre></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>BR, Dmytro.</span><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>