Thread: pgsql-server/contrib tsearch/parser.l tsearch2 ...

pgsql-server/contrib tsearch/parser.l tsearch2 ...

From
tgl@svr1.postgresql.org (Tom Lane)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    tgl@svr1.postgresql.org    03/09/14 15:44:23

Modified files:
    contrib/tsearch: parser.l
    contrib/tsearch2/wordparser: parser.l

Log message:
    Persuade tsearch/tsearch2 to work (or at least pass their regression
    tests) when using flex 2.5.31.  The fix is to *not* try to use palloc
    and pfree for allocations within the lexer; when you do that, the
    yy_buffer_stack gets freed at inopportune times.  The code is already
    set up to do manual deallocation, so I see no particular advantage to
    using palloc anyway.