Re: [HACKERS] Visual Studio 2015 and telemetry calls

2016-07-21 Thread Craig Ringer
On 22 July 2016 at 10:45, Michael Paquier  wrote:

> Hi all,
>
> Some people may have bumped into the following surprise for VS2015:
>
> https://yro.slashdot.org/story/16/06/10/1350245/visual-studio-2015-c-compiler-secretly-inserts-telemetry-code-into-binaries
>
> VS 2015 is adding calls to telemetry (surprise!) to track activity of
> an application...


It's already been removed.
https://www.infoq.com/news/2016/06/visual-cpp-telemetry .

Frankly I think it's a good idea, it was just stupid to do it silently and
by default especially on release builds. It didn't actually send data
anywhere unless locally enabled, though.

This is mostly a storm in a teacup, IMO, and if undesired it sounds like
it's just necessary to build with VS 2015 update 3. I don't personally see
it as particularly different to inserting dtrace events or similar.

https://www.visualstudio.com/en-us/news/releasenotes/vs2015-update3-vs

-- 
 Craig Ringer   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


Re: [HACKERS] Visual Studio 2015 and telemetry calls

2016-07-21 Thread Michael Paquier
On Fri, Jul 22, 2016 at 11:45 AM, Michael Paquier
 wrote:
> Some people may have bumped into the following surprise for VS2015:
> https://yro.slashdot.org/story/16/06/10/1350245/visual-studio-2015-c-compiler-secretly-inserts-telemetry-code-into-binaries
>
> VS 2015 is adding calls to telemetry (surprise!) to track activity of
> an application... I can't believe that everybody wants that as enabled
> and a workaround to disable it is to add notelemetry.obj to the linker
> visibly. So could we consider disabling telemetry as the default
> behavior when building Postgres? Anybody willing to enable that could
> just fork and hack the scripts in src/tools/msvc/.
>
> Thoughts?

Actually, it would not be weird to enable it in DEBUG builds but
disable it by default. After more research this can emit as well ETW
events for Windows (sort of equivalent of dtrace for Windows).
-- 
Michael


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers