Re: [patch] Build pgoutput with MSVC

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: MauMau <maumau307(at)gmail(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [patch] Build pgoutput with MSVC
Date: 2017-05-05 23:28:03
Message-ID: CAB7nPqR=CzBtf-cV98uAPbEkdV7vzdtLXZtBQULot0nexOz=bQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, May 6, 2017 at 7:07 AM, MauMau <maumau307(at)gmail(dot)com> wrote:
> From: Magnus Hagander
> 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, fixed clean.bat, too. My original patch was in UTF-16
> unexpectedly. With Git Shell in GitHub Desktop on Windows, "git diff
>> filename" seems to produce output in UTF-16. I guess that's due to
> PowerShell. I think there's nothing else to do, so please commit
> this. Also, I added an item in the Open Items page.

Magnus has already pushed it as 28d1c8c.

+if exist src\backend\replication\libpqwalreceiver\win32ver.rc del /q
src\backend\replication\pgoutput\win32ver.rc
This is not right by the way, you need to check for the existence of
the file in pgoutput/, not libpqwalreceiver/.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2017-05-05 23:37:52 Draft release notes for next week's back-branch releases
Previous Message Amit Kapila 2017-05-05 23:11:37 Re: statement_timeout is not working as expected with postgres_fdw