diff --git a/src/backend/utils/adt/tsvector_op.c b/src/backend/utils/adt/tsvector_op.c
index 591e59c..95ad69b 100644
*** a/src/backend/utils/adt/tsvector_op.c
--- b/src/backend/utils/adt/tsvector_op.c
*************** TS_phrase_execute(QueryItem *curitem,
*** 1409,1415 ****
  		{
  			while (Lpos < Ldata.pos + Ldata.npos)
  			{
! 				if (WEP_GETPOS(*Lpos) <= WEP_GETPOS(*Rpos))
  				{
  					/*
  					 * Lpos is behind the Rpos, so we have to check the
--- 1409,1415 ----
  		{
  			while (Lpos < Ldata.pos + Ldata.npos)
  			{
! 				if (WEP_GETPOS(*Lpos) < WEP_GETPOS(*Rpos))
  				{
  					/*
  					 * Lpos is behind the Rpos, so we have to check the
