Re: [HACKERS] [sqlsmith] Crash in tsquery_rewrite/QTNBinary

2016-12-11 Thread Tom Lane
Artur Zakirov writes: > 2016-12-07 9:06 GMT+03:00 Andreas Seltenreich : >> the following query crashes master as of 4212cb7. > It happens because 'I' is stop word and substitute query becomes > empty. And for queries above we need recursive

Re: [HACKERS] [sqlsmith] Crash in tsquery_rewrite/QTNBinary

2016-12-10 Thread Artur Zakirov
Hi, 2016-12-07 9:06 GMT+03:00 Andreas Seltenreich : > Hi, > > the following query crashes master as of 4212cb7. > > select ts_rewrite( > tsquery_phrase( > tsquery $$'sanct' & 'peter'$$, > tsquery $$'5' <-> '6'$$, > 42), >

[HACKERS] [sqlsmith] Crash in tsquery_rewrite/QTNBinary

2016-12-06 Thread Andreas Seltenreich
Hi, the following query crashes master as of 4212cb7. select ts_rewrite( tsquery_phrase( tsquery $$'sanct' & 'peter'$$, tsquery $$'5' <-> '6'$$, 42), tsquery $$'5' <-> '6'$$, plainto_tsquery('I') ); Backtrace below. regards,