OSDN Git Service

Stabilize regression test.
[pghintplan/pg_hint_plan.git] / sql / maskout.sh
1 #! /bin/sh
2 cat $1 | \
3 sed 's/cost=10\{7\}[\.0-9]\+ /cost={inf}..{inf} /;s/cost=[\.0-9]\+ /cost=xxx..xxx /;s/width=[0-9]\+\([^0-9]\)/width=xxx\1/' |\
4 egrep -v "^ *((Planning time|JIT|Functions|Options):|\([0-9]* rows\))" |\
5 sed -e 's/^ *QUERY PLAN *$/  QUERY PLAN/' -e 's/^--*$/----------------/'