Re: [patch] Build pgoutput with MSVC

From: Petr Jelinek <petr(dot)jelinek(at)2ndquadrant(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: MauMau <maumau307(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [patch] Build pgoutput with MSVC
Date: 2017-05-05 12:40:20
Message-ID: 5cbabe19-2042-0ccc-62bb-a806c8298380@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 05/05/17 12:10, Magnus Hagander wrote:
>
> On Fri, May 5, 2017 at 11:58 AM, Michael Paquier
> <michael(dot)paquier(at)gmail(dot)com <mailto:michael(dot)paquier(at)gmail(dot)com>> wrote:
>
> On Fri, May 5, 2017 at 6:10 PM, MauMau <maumau307(at)gmail(dot)com
> <mailto:maumau307(at)gmail(dot)com>> wrote:
> > The pgoutput is not built with MSVC. The attached patch fixes this.
> > I confirmed that a few INSERTs were replicated correctly.
> >
> > Should I add this matter in the PostgreSQL 10 Open Items page?
>
> Yes, with Peter as committer and Petr as owner.
>
> + my $pgoutput = $solution->AddProject(
> + 'pgoutput', 'dll', '',
> + 'src/backend/replication/pgoutput');
> + $pgoutput->AddReference($postgres);
> Yup, that's correct.
>
> You have forgotten to update clean.bat, which should clean up
> pgoutput.dll.
>
>
> If that's all that's required, I'll just go ahead and commit it right
> away, including the clean.bat.
>
> I think the problem with clean.bat isn't cleaning up pgoutput.dll --
> that one goes in a different directory. But it does need to clean up the
> win32ver.rc file that gets dropped there automaticaly.
>
> The attached patch itself seems broken (it has some sort of byte order
> marker at the beginning, but removing that still breaks with "patch
> unexpectedly ends in middle of line patch: **** Only garbage was found
> in the patch input.". But I can just copy/paste it manually :)
>

Thanks for fixing this, I admit I have no idea how our windows build
system works.

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message tushar 2017-05-05 12:40:43 Not getting error if ALTER SUBSCRIPTION syntax is wrong.
Previous Message Petr Jelinek 2017-05-05 12:28:50 Re: PG 10 release notes