pgsql: Remove restriction on SQL block length in isolationtester scanne

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Remove restriction on SQL block length in isolationtester scanne
Date: 2018-02-28 21:57:53
Message-ID: E1er9jV-000354-PO@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove restriction on SQL block length in isolationtester scanner.

specscanner.l had a fixed limit of 1024 bytes on the length of
individual SQL stanzas in an isolation test script. People are
starting to run into that, so fix it by making the buffer resizable.

Once we allow this in HEAD, it seems inevitable that somebody will
try to back-patch a test that exceeds the old limit, so back-patch
this change as a preventive measure.

Daniel Gustafsson

Discussion: https://postgr.es/m/8D628BE4-6606-4FF6-A3FF-8B2B0E9B43D0@yesql.se

Branch
------
REL9_3_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/824cceded4095eb3b26d19b1a91d01eaf37c0baf

Modified Files
--------------
src/test/isolation/specscanner.l | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2018-02-28 23:34:03 pgsql: Rename base64 routines to avoid conflict with Solaris built-in f
Previous Message Catalin Iacob 2018-02-28 17:43:09 Re: pgsql: Un-break parallel pg_upgrade.