Re: (repost) pgtcl: restore 8.0 compatibility for large obj fix - Mailing list pgsql-patches

From Tom Lane
Subject Re: (repost) pgtcl: restore 8.0 compatibility for large obj fix
Date
Msg-id 15793.1068089824@sss.pgh.pa.us
Whole thread Raw
In response to (repost) pgtcl: restore 8.0 compatibility for large obj fix  (ljb <ljb220@mindspring.com>)
List pgsql-patches
ljb <ljb220@mindspring.com> writes:
> +#if TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION >= 1 || TCL_MAJOR_VERSION > 8
> +    bufObj = Tcl_NewByteArrayObj(buf, nbytes);
> +#else
>      bufObj = Tcl_NewStringObj(buf, nbytes);
> +#endif

Hmm.  We could certainly do it like that, but does this actually fix the
problem for Tcl 8.0.*?  Or will the unwanted character set translation
happen anyway in that version?  I don't see any value in letting the
code compile against 8.0.* if the behavior will be wrong ...

            regards, tom lane

pgsql-patches by date:

Previous
From: Gaetano Mendola
Date:
Subject: Re: equal() perf tweak
Next
From: Neil Conway
Date:
Subject: Re: equal() perf tweak