*** src.orig/backend/tsearch/wparser_def.c	2010-02-26 21:00:43.000000000 +0300
--- src/backend/tsearch/wparser_def.c	2010-02-26 23:07:15.000000000 +0300
***************
*** 1047,1052 ****
--- 1047,1053 ----
  	{p_iseqC, '.', A_PUSH, TPS_InFileNext, 0, NULL},
  	{p_iseqC, '-', A_PUSH, TPS_InHostFirstAN, 0, NULL},
  	{p_iseqC, '-', A_PUSH, TPS_InHyphenAsciiWordFirst, 0, NULL},
+ 	{p_iseqC, '_', A_PUSH, TPS_InHostFirstAN, 0, NULL},
  	{p_iseqC, '@', A_PUSH, TPS_InEmail, 0, NULL},
  	{p_iseqC, ':', A_PUSH, TPS_InProtocolFirst, 0, NULL},
  	{p_iseqC, '/', A_PUSH, TPS_InFileFirst, 0, NULL},
***************
*** 1375,1380 ****
--- 1376,1382 ----
  	{p_isasclet, 0, A_NEXT, TPS_InHostDomain, 0, NULL},
  	{p_isdigit, 0, A_PUSH, TPS_InHost, 0, NULL},
  	{p_iseqC, '-', A_PUSH, TPS_InHostFirstAN, 0, NULL},
+ 	{p_iseqC, '_', A_PUSH, TPS_InHostFirstAN, 0, NULL},
  	{p_iseqC, '.', A_PUSH, TPS_InHostFirstDomain, 0, NULL},
  	{p_iseqC, '@', A_PUSH, TPS_InEmail, 0, NULL},
  	{NULL, 0, A_POP, TPS_Null, 0, NULL}
***************
*** 1386,1391 ****
--- 1388,1394 ----
  	{p_isdigit, 0, A_PUSH, TPS_InHost, 0, NULL},
  	{p_iseqC, ':', A_PUSH, TPS_InPortFirst, 0, NULL},
  	{p_iseqC, '-', A_PUSH, TPS_InHostFirstAN, 0, NULL},
+ 	{p_iseqC, '_', A_PUSH, TPS_InHostFirstAN, 0, NULL},
  	{p_iseqC, '.', A_PUSH, TPS_InHostFirstDomain, 0, NULL},
  	{p_iseqC, '@', A_PUSH, TPS_InEmail, 0, NULL},
  	{p_isdigit, 0, A_POP, TPS_Null, 0, NULL},
***************
*** 1422,1427 ****
--- 1425,1431 ----
  	{p_iseqC, '@', A_PUSH, TPS_InEmail, 0, NULL},
  	{p_iseqC, '.', A_PUSH, TPS_InHostFirstDomain, 0, NULL},
  	{p_iseqC, '-', A_PUSH, TPS_InHostFirstAN, 0, NULL},
+ 	{p_iseqC, '_', A_PUSH, TPS_InHostFirstAN, 0, NULL},
  	{NULL, 0, A_POP, TPS_Null, 0, NULL}
  };
  
