Re: ECPGset_var
Boszormenyi Zoltan <zb@cybertec.at>
From: Boszormenyi Zoltan <zb@cybertec.at>
To: Alvaro Herrera <alvherre@commandprompt.com>, Michael Meskes <meskes@postgresql.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, PostgreSQL Hacker <pgsql-hackers@postgresql.org>
Date: 2010-01-26T19:46:02Z
Lists: pgsql-hackers
Attachments
- pg85-fix-ooscope-cur-2-ctxdiff.patch (text/x-patch) patch
Alvaro Herrera írta: > Boszormenyi Zoltan wrote: > > >> Thanks for analyzing it, patch is attached. I downloaded >> and installed ICC, so I could reproduce the difference. >> > > Why not have a single function that does both things in a single call? > It doesn't look like there's any place that calls the function with only > one value for "insert" ... > Okay, I tried this approach, patch is attached. This way it doesn't depend on the evaluation order of function parameters. > I happened to notice this misleading comment: > > char temp[20]; /* this should be sufficient unless you have 8 byte integers */ > That comment was there before I touched that function, I deleted it now. There will be other problems before reaching 2^31-1 internal variables, like compiling the monster C file without the compiler going OOM... Best regards, Zoltán Böszörményi -- Bible has answers for everything. Proof: "But let your communication be, Yea, yea; Nay, nay: for whatsoever is more than these cometh of evil." (Matthew 5:37) - basics of digital technology. "May your kingdom come" - superficial description of plate tectonics ---------------------------------- Zoltán Böszörményi Cybertec Schönig & Schönig GmbH http://www.postgresql.at/