Re: Two small patches for the isolationtester lexer
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: PostgreSQL Development <pgsql-hackers@postgresql.org>
Date: 2018-02-28T21:59:34Z
Lists: pgsql-hackers
Daniel Gustafsson <daniel@yesql.se> writes: >> On 22 Feb 2018, at 05:12, Tom Lane <tgl@sss.pgh.pa.us> wrote: >> Another idea is just to teach addlitchar to realloc the buffer bigger >> when necessary. > I think this is the best approach for the task, the attached patch changes the > static allocation to instead realloc when required. Having an upper limit on > the allocation seemed like a good idea to me, but perhaps it’s overthinking and > complicating things for no good reason. Yeah, it doesn't seem to me that we need any fixed limit on the length, so I deleted that part of the logic, and pushed it with one or two other cosmetic adjustments. regards, tom lane
Commits
-
Remove restriction on SQL block length in isolationtester scanner.
- e459eb9fb0c2 9.5.13 landed
- cadb14c271bf 9.4.18 landed
- 824cceded409 9.3.23 landed
- a030b997ae33 9.6.9 landed
- 38a1144a91d2 11.0 landed
- 14ffdd8cf88f 10.4 landed