Compile fail, alpha5 & gcc 4.3.3 in elog.c

Lists: pgsql-hackers
From: Josh Berkus <josh(at)agliodbs(dot)com>
To: "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Alpha release this week?
Date: 2010-03-28 20:40:01
Message-ID: 4BAFBEA1.4040104@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

All,

We've got two locations and some individuals signed up for a test-fest
this weekend. Would it be possible to do an alpha release this week?
It would really help to be testing later code than Alpha4.

--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Alpha release this week?
Date: 2010-03-28 23:22:28
Message-ID: 603c8f071003281622t1f5c3a23jfc9a60034ae15c58@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sun, Mar 28, 2010 at 4:40 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> We've got two locations and some individuals signed up for a test-fest
> this weekend.  Would it be possible to do an alpha release this week?
> It would really help to be testing later code than Alpha4.

I'm willing to do the CVS bits, if that's helpful. Or maybe Peter
wants to do it. Anyway I have no problem with the idea.

...Robert


From: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Alpha release this week?
Date: 2010-03-29 08:42:39
Message-ID: 4BB067FF.50000@kaltenbrunner.cc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robert Haas wrote:
> On Sun, Mar 28, 2010 at 4:40 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
>> We've got two locations and some individuals signed up for a test-fest
>> this weekend. Would it be possible to do an alpha release this week?
>> It would really help to be testing later code than Alpha4.
>
> I'm willing to do the CVS bits, if that's helpful. Or maybe Peter
> wants to do it. Anyway I have no problem with the idea.

or just use a specific recent snapshot and let people test that just in
case it is not feasible doing a new alpha on short notice.

Stefan


From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Alpha release this week?
Date: 2010-03-29 18:52:34
Message-ID: 4BB0F6F2.50809@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


> or just use a specific recent snapshot and let people test that just in
> case it is not feasible doing a new alpha on short notice.

Doesn't work if we want to test it on windows. And snaphsots have more
compile dependancies than releases do.

Also ... this isn't short notice. I requested a new alpha, this week, 2
weeks ago.

--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Alpha release this week?
Date: 2010-03-29 19:41:57
Message-ID: 603c8f071003291241y19ac8395t127f408dbe39def@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Mon, Mar 29, 2010 at 2:52 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
>
>> or just use a specific recent snapshot and let people test that just in
>> case it is not feasible doing a new alpha on short notice.
>
> Doesn't work if we want to test it on windows.  And snaphsots have more
> compile dependancies than releases do.
>
> Also ... this isn't short notice.  I requested a new alpha, this week, 2
> weeks ago.

Also, I already said I would do it (unless another committer wants
to). Somebody just has to tell me what they want done and when.
Presumably that means providing a patch to the release notes for me to
check in, a date to make the branch, and where they want the tarball
put.

...Robert


From: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Alpha release this week?
Date: 2010-03-29 20:40:11
Message-ID: 4BB1102B.6030700@kaltenbrunner.cc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robert Haas wrote:
> On Mon, Mar 29, 2010 at 2:52 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
>>> or just use a specific recent snapshot and let people test that just in
>>> case it is not feasible doing a new alpha on short notice.
>> Doesn't work if we want to test it on windows. And snaphsots have more
>> compile dependancies than releases do.
>>
>> Also ... this isn't short notice. I requested a new alpha, this week, 2
>> weeks ago.
>
> Also, I already said I would do it (unless another committer wants
> to). Somebody just has to tell me what they want done and when.
> Presumably that means providing a patch to the release notes for me to
> check in, a date to make the branch, and where they want the tarball
> put.

yeah but you also need people changing the website - and probably more
important given that josh wants windows as well help from dave for doing
a new windows installer :)

Stefan


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Alpha release this week?
Date: 2010-03-29 21:05:48
Message-ID: 603c8f071003291405t6f2c44e7u1a42c23ce93f5edc@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Mon, Mar 29, 2010 at 4:40 PM, Stefan Kaltenbrunner
<stefan(at)kaltenbrunner(dot)cc> wrote:
> yeah but you also need people changing the website - and probably more
> important given that josh wants windows as well help from dave for doing a
> new windows installer :)

True... well, I can't help with those bits. :-)

...Robert


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Alpha release this week?
Date: 2010-03-29 22:14:17
Message-ID: 1269900857.6144.26.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On sön, 2010-03-28 at 19:22 -0400, Robert Haas wrote:
> On Sun, Mar 28, 2010 at 4:40 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> > We've got two locations and some individuals signed up for a test-fest
> > this weekend. Would it be possible to do an alpha release this week?
> > It would really help to be testing later code than Alpha4.
>
> I'm willing to do the CVS bits, if that's helpful. Or maybe Peter
> wants to do it. Anyway I have no problem with the idea.
>
> ...Robert
>

Feel free to do it. It's documented at
<http://wiki.postgresql.org/wiki/Alpha_release_process>. Ask me if
something is unclear.

But as was said downthread, getting someone to do the Windows installer
would be good.


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>, Josh Berkus <josh(at)agliodbs(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: Alpha release this week?
Date: 2010-03-30 00:04:20
Message-ID: 9837222c1003291704h6c5a5c51j3e2d927f74f90fa6@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Last i heard from Dave on that topic is that there's no chance of that
happening that quickly. He's on a plane now but I'm sure he'll confirm that
when he lands.

/Magnus

On Mar 29, 2010 6:14 PM, "Peter Eisentraut" <peter_e(at)gmx(dot)net> wrote:

On sön, 2010-03-28 at 19:22 -0400, Robert Haas wrote:
> On Sun, Mar 28, 2010 at 4:40 PM, Josh Berkus...
Feel free to do it. It's documented at
<http://wiki.postgresql.org/wiki/Alpha_release_process>. Ask me if
something is unclear.

But as was said downthread, getting someone to do the Windows installer
would be good.

--
Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
To make changes to your sub...


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>, Robert Haas <robertmhaas(at)gmail(dot)com>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Alpha release this week?
Date: 2010-03-30 01:04:49
Message-ID: 20100330010448.GF3925@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Josh Berkus escribió:

> And snaphsots have more compile dependancies than releases do.

As far as I know, a snapshot is identical to a "release" in that regard.
If they are not, that's a bug and we can fix it before weekend.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


From: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>, Robert Haas <robertmhaas(at)gmail(dot)com>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Alpha release this week?
Date: 2010-03-30 06:32:18
Message-ID: 4BB19AF2.204@kaltenbrunner.cc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Alvaro Herrera wrote:
> Josh Berkus escribió:
>
>> And snaphsots have more compile dependancies than releases do.
>
> As far as I know, a snapshot is identical to a "release" in that regard.
> If they are not, that's a bug and we can fix it before weekend.

yeah - snapshots do have the same compile time dependencies as release
tarballs have.

Stefan


From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: Alpha release this week?
Date: 2010-03-30 20:43:21
Message-ID: 4BB26269.9000805@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 3/29/10 5:04 PM, Magnus Hagander wrote:
> Last i heard from Dave on that topic is that there's no chance of that
> happening that quickly. He's on a plane now but I'm sure he'll confirm
> that when he lands.

That means that we'll be doing the test-fest using Alpha4, materially.
Which is annoying because it means we'll be catching a lot of bugs which
are already fixed. However, it's pretty much impossible for me to
coordinate 25 volunteers getting the *same* daily snapshot. And we need
to test on Windows, since it has all kinds of special issues.

I think my big goal for 9.1 is going to be to fix our testing procedure,
or rather total lack of a procedure. We've got development
systematized, now it's time for testing. I'm just sorry that the press
of work kept me from really doing it this time around.

I think we could be getting from alpha to beta in 6 weeks if we actually
had a schedule and some real testing goals.

--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Alpha release this week?
Date: 2010-03-30 22:01:28
Message-ID: 603c8f071003301501n7aadf476ua6b0ecd0ac68c4e5@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Tue, Mar 30, 2010 at 4:43 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> On 3/29/10 5:04 PM, Magnus Hagander wrote:
>> Last i heard from Dave on that topic is that there's no chance of that
>> happening that quickly. He's on a plane now but I'm sure he'll confirm
>> that when he lands.
>
> That means that we'll be doing the test-fest using Alpha4, materially.
> Which is annoying because it means we'll be catching a lot of bugs which
> are already fixed.  However, it's pretty much impossible for me to
> coordinate 25 volunteers getting the *same* daily snapshot.  And we need
> to test on Windows, since it has all kinds of special issues.
>
> I think my big goal for 9.1 is going to be to fix our testing procedure,
> or rather total lack of a procedure.  We've got development
> systematized, now it's time for testing.  I'm just sorry that the press
> of work kept me from really doing it this time around.
>
> I think we could be getting from alpha to beta in 6 weeks if we actually
> had a schedule and some real testing goals.

At the risk of being blunt, AFAICT, the delay in getting to beta has
little or nothing to do with testing and everything to do with the
fact that streaming replication got committed with a long list of open
items two months ago, and many of them haven't been fixed yet. Hot
Standby has a few warts too, but I think Simon has done a better job
cleaning up the loose ends there (with help from Tom and Heikki), no
doubt because he got it committed two months sooner than SR. From a
project management point of view, it seems to me that we shouldn't
commit major patches late in the release cycle unless someone has the
time to actually get them finished and stable. If Streaming
Replication were any other patch, we would have reverted it a month
ago. As it is, it looks like we're going to be waiting until Heikki
has time to deal with the issues, because it doesn't look like any of
the other committers are able/willing to help.

...Robert


From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Alpha release this week?
Date: 2010-03-31 02:32:36
Message-ID: 3f0b79eb1003301932s612eb723l2957b9b70503214e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Mar 31, 2010 at 7:01 AM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> At the risk of being blunt, AFAICT, the delay in getting to beta has
> little or nothing to do with testing and everything to do with the
> fact that streaming replication got committed with a long list of open
> items two months ago, and many of them haven't been fixed yet.  Hot
> Standby has a few warts too, but I think Simon has done a better job
> cleaning up the loose ends there (with help from Tom and Heikki), no
> doubt because he got it committed two months sooner than SR.  From a
> project management point of view, it seems to me that we shouldn't
> commit major patches late in the release cycle unless someone has the
> time to actually get them finished and stable.  If Streaming
> Replication were any other patch, we would have reverted it a month
> ago.  As it is, it looks like we're going to be waiting until Heikki
> has time to deal with the issues, because it doesn't look like any of
> the other committers are able/willing to help.

I believe that anyone except Heikki & me can deal with the following
issues since they started with SR but actually are not tied up to SR ;)

* dblink and walreceiver are not interruptible on win32
http://archives.postgresql.org/pgsql-hackers/2010-01/msg01672.php
http://archives.postgresql.org/pgsql-hackers/2010-03/msg00413.php

* smart shutdown during recovery gets stuck
http://archives.postgresql.org/pgsql-hackers/2010-01/msg02044.php
http://archives.postgresql.org/pgsql-hackers/2010-03/msg01208.php

* pg_xlogfile_name() might report the wrong name
http://archives.postgresql.org/pgsql-hackers/2010-01/msg01806.php

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


From: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: Alpha release this week?
Date: 2010-03-31 05:57:56
Message-ID: 4BB2E464.7060401@kaltenbrunner.cc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Josh Berkus wrote:
> On 3/29/10 5:04 PM, Magnus Hagander wrote:
>> Last i heard from Dave on that topic is that there's no chance of that
>> happening that quickly. He's on a plane now but I'm sure he'll confirm
>> that when he lands.
>
> That means that we'll be doing the test-fest using Alpha4, materially.
> Which is annoying because it means we'll be catching a lot of bugs which
> are already fixed. However, it's pretty much impossible for me to
> coordinate 25 volunteers getting the *same* daily snapshot. And we need
> to test on Windows, since it has all kinds of special issues.

well this is actually the first release cycle where we even HAD alpha
releases - as for the snapsho thing I cannot see why you could not
download a snpashot on your own, put it somewhere (like a wiki page) and
send out an email to all the volunteers and ask them to use at least
that one if building from source...

Stefan


From: Dave Page <dpage(at)pgadmin(dot)org>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>, Josh Berkus <josh(at)agliodbs(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: Alpha release this week?
Date: 2010-03-31 07:57:48
Message-ID: y2z937d27e11003310057i4f2c3325w6964fe336fbce2e8@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Tue, Mar 30, 2010 at 1:04 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
> Last i heard from Dave on that topic is that there's no chance of that
> happening that quickly. He's on a plane now but I'm sure he'll confirm that
> when he lands.

Not with any amount of testing as we'd normally give any build before
releasing it anyway. I can certainly stuff a tarball into the new
build machine and see what comes out the next morning.

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com


From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: Alpha release this week?
Date: 2010-03-31 17:46:17
Message-ID: 4BB38A69.6020001@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Dave,

> Not with any amount of testing as we'd normally give any build before
> releasing it anyway. I can certainly stuff a tarball into the new
> build machine and see what comes out the next morning.

That would be good enough for Saturday; we're going to test it after
all. Let me know which snapshot day you grab, so we can have the same
snapshot-day for Windows and other platforms.

--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com


From: Dave Page <dpage(at)pgadmin(dot)org>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: Alpha release this week?
Date: 2010-03-31 18:33:36
Message-ID: i2o937d27e11003311133kdcb57da0pb59ba399f4ea727@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Mar 31, 2010 at 6:46 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> Dave,
>
>> Not with any amount of testing as we'd normally give any build before
>> releasing it anyway. I can certainly stuff a tarball into the new
>> build machine and see what comes out the next morning.
>
> That would be good enough for Saturday; we're going to test it after
> all.  Let me know which snapshot day you grab, so we can have the same
> snapshot-day for Windows and other platforms.

Oh, you're wanting to use an automated snapshot? There used to be some
differences in those tarballs (when compared to real releases) that
will probably cause the build system to fall over. If you can get a
proper alpha 5 tarball created, that would be preferrable.

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Alpha release this week?
Date: 2010-03-31 18:52:21
Message-ID: h2o603c8f071003311152hc4316f07r90731ab02979f85@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Mar 31, 2010 at 2:33 PM, Dave Page <dpage(at)pgadmin(dot)org> wrote:
> On Wed, Mar 31, 2010 at 6:46 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
>> Dave,
>>
>>> Not with any amount of testing as we'd normally give any build before
>>> releasing it anyway. I can certainly stuff a tarball into the new
>>> build machine and see what comes out the next morning.
>>
>> That would be good enough for Saturday; we're going to test it after
>> all.  Let me know which snapshot day you grab, so we can have the same
>> snapshot-day for Windows and other platforms.
>
> Oh, you're wanting to use an automated snapshot? There used to be some
> differences in those tarballs (when compared to real releases) that
> will probably cause the build system to fall over. If you can get a
> proper alpha 5 tarball created, that would be preferrable.

I can snap a tarball tonight if you want. I'm going to be leaving
town tomorrow afternoon, though.

...Robert


From: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Dave Page <dpage(at)pgadmin(dot)org>, Magnus Hagander <magnus(at)hagander(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: Alpha release this week?
Date: 2010-03-31 19:07:47
Message-ID: 1270062467.2518.2.camel@hp-laptop2.gunduz.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, 2010-03-31 at 10:46 -0700, Josh Berkus wrote:
> > Not with any amount of testing as we'd normally give any build
> before
> > releasing it anyway. I can certainly stuff a tarball into the new
> > build machine and see what comes out the next morning.
>
> That would be good enough for Saturday; we're going to test it after
> all. Let me know which snapshot day you grab, so we can have the same
> snapshot-day for Windows and other platforms.

FWIW, I can release RPMs based on the same snapshot in an hour after I
get the tarball.

--
Devrim GÜNDÜZ
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
PostgreSQL RPM Repository: http://yum.pgrpms.org
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz


From: Dave Page <dpage(at)pgadmin(dot)org>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Alpha release this week?
Date: 2010-03-31 19:29:45
Message-ID: o2y937d27e11003311229m688b88a9v8c9e8f7a58f71d08@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Mar 31, 2010 at 7:52 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> I can snap a tarball tonight if you want.  I'm going to be leaving
> town tomorrow afternoon, though.

Works for me. I'll stuff it into our shiny new 9.0 build machine tomorrow.

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com


From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Dave Page <dpage(at)pgadmin(dot)org>, Magnus Hagander <magnus(at)hagander(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Alpha release this week?
Date: 2010-03-31 20:39:08
Message-ID: 4BB3B2EC.7050504@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robert,

> I can snap a tarball tonight if you want. I'm going to be leaving
> town tomorrow afternoon, though.

Please do.

--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Dave Page <dpage(at)pgadmin(dot)org>, Magnus Hagander <magnus(at)hagander(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Alpha release this week?
Date: 2010-03-31 20:45:32
Message-ID: j2m603c8f071003311345yfcf67b2bz9c4f0a9e7e206666@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Mar 31, 2010 at 4:39 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
>> I can snap a tarball tonight if you want.  I'm going to be leaving
>> town tomorrow afternoon, though.
>
> Please do.

If someone could email me off list where they would like the tarball
put, with login credentials, I will put it there. Otherwise I will be
creative.

...Robert


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Alpha release this week?
Date: 2010-04-01 02:34:56
Message-ID: y2r603c8f071003311934x53c80bd1h9e49c6c6cca784ba@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Mar 31, 2010 at 3:29 PM, Dave Page <dpage(at)pgadmin(dot)org> wrote:
> On Wed, Mar 31, 2010 at 7:52 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>> I can snap a tarball tonight if you want.  I'm going to be leaving
>> town tomorrow afternoon, though.
>
> Works for me. I'll stuff it into our shiny new 9.0 build machine tomorrow.

Marc is going to set up me up with access to a more appropriate
location, but in the meantime, here's alpha5:

https://commitfest.postgresql.org/release/

sha1sum:

54c1f3fda64c675ee3882c0f5be3fdc44e6d0323 postgresql-9.0alpha5.tar.bz2
a3099fc8090f5793c3dd7b9ee5dae7a622b29d87 postgresql-9.0alpha5.tar.gz

...Robert


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Alpha release this week?
Date: 2010-04-01 04:24:41
Message-ID: r2k603c8f071003312124sc6dda17xba8f9893afb320e1@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Mar 31, 2010 at 10:34 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> On Wed, Mar 31, 2010 at 3:29 PM, Dave Page <dpage(at)pgadmin(dot)org> wrote:
>> On Wed, Mar 31, 2010 at 7:52 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>>> I can snap a tarball tonight if you want.  I'm going to be leaving
>>> town tomorrow afternoon, though.
>>
>> Works for me. I'll stuff it into our shiny new 9.0 build machine tomorrow.
>
> Marc is going to set up me up with access to a more appropriate
> location, but in the meantime, here's alpha5:
>
> https://commitfest.postgresql.org/release/
>
> sha1sum:
>
> 54c1f3fda64c675ee3882c0f5be3fdc44e6d0323  postgresql-9.0alpha5.tar.bz2
> a3099fc8090f5793c3dd7b9ee5dae7a622b29d87  postgresql-9.0alpha5.tar.gz

This stuff is now also at:

ftp://developer.postgresql.org/pub/source/9.0alpha5/

...Robert


From: Dave Page <dpage(at)pgadmin(dot)org>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Alpha release this week?
Date: 2010-04-01 13:31:48
Message-ID: z2p937d27e11004010631i9453e259meba9078892d47d0c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thu, Apr 1, 2010 at 5:24 AM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> This stuff is now also at:
>
> ftp://developer.postgresql.org/pub/source/9.0alpha5/

Thanks Robert. We're working on this, but it seems that changes in the
PG build have broken the debugger again. Hopefully we can get it
sorted before the holidays start tomorrow.

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com


From: Dave Page <dpage(at)pgadmin(dot)org>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Alpha release this week?
Date: 2010-04-01 20:57:06
Message-ID: h2w937d27e11004011357x8746b05ch1f7f442850d25553@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thu, Apr 1, 2010 at 2:31 PM, Dave Page <dpage(at)pgadmin(dot)org> wrote:
> On Thu, Apr 1, 2010 at 5:24 AM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>> This stuff is now also at:
>>
>> ftp://developer.postgresql.org/pub/source/9.0alpha5/
>
> Thanks Robert. We're working on this, but it seems that changes in the
> PG build have broken the debugger again. Hopefully we can get it
> sorted before the holidays start tomorrow.

OK, there are builds at http://developer.pgadmin.org/~dpage/

Note that these are from an entirely new build machine for 9.0. There
are new build OS's, new compilers, updated dependencies... in other
words, expect something to go wrong. I did briefly test the Windows
version - the server installed and ran OK, but pgAdmin 1.8 doesn't
like PG 9.0

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com


From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Alpha release this week?
Date: 2010-04-02 03:25:27
Message-ID: 4BB563A7.7010600@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robert, Dave,

Thanks so much for building these.

Hopefully we'll get a good turnout and get a lot of things tested.

--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com


From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-02 04:53:29
Message-ID: 4BB57849.6060107@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Guys,

Hmmm. I appear to have had a compile error with that alpha5 tarball,
in elog.c. No special options on compile, except an alternate directory
and port.

Ubunutu 9.10 server
GCC 4.3.3
Tries both:
./configure --with-pgport=5490 --prefix=/usr/local/pgsql/9.0/
and:
./configure --with-pgport=5490 --prefix=/usr/local/pgsql/9.0/
--enable-debug -enable-cassert

make[4]: Entering directory
`/usr/local/src/postgresql-9.0alpha5/src/backend/utils/error'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -Werror -I../../../../src/include -D_GNU_SOURCE -c -o assert.o
assert.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -Werror -I../../../../src/include -D_GNU_SOURCE -c -o elog.o
elog.c
cc1: warnings being treated as errors
elog.c: In function ‘write_console’:
elog.c:1698: error: ignoring return value of ‘write’, declared with
attribute warn_unused_result
elog.c: In function ‘write_pipe_chunks’:
elog.c:2390: error: ignoring return value of ‘write’, declared with
attribute warn_unused_result
elog.c:2399: error: ignoring return value of ‘write’, declared with
attribute warn_unused_result
make[4]: *** [elog.o] Error 1

--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-02 04:57:45
Message-ID: 2649.1270184265@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Josh Berkus <josh(at)agliodbs(dot)com> writes:
> Hmmm. I appear to have had a compile error with that alpha5 tarball,
> in elog.c. No special options on compile, except an alternate directory
> and port.

No, you stuck in -Werror. Don't do that on bleeding-edge gcc (or
bleeding-edge anything).

regards, tom lane


From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-02 05:05:11
Message-ID: 4BB57B07.4030900@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 4/1/10 9:57 PM, Tom Lane wrote:
> Josh Berkus <josh(at)agliodbs(dot)com> writes:
>> Hmmm. I appear to have had a compile error with that alpha5 tarball,
>> in elog.c. No special options on compile, except an alternate directory
>> and port.
>
> No, you stuck in -Werror. Don't do that on bleeding-edge gcc (or
> bleeding-edge anything).

I didn't actually. Must be set by default on Ubuntu's gcc?

(goes looking for a way to disable it ...)

--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com


From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-02 05:10:25
Message-ID: 4BB57C41.7040809@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


> No, you stuck in -Werror. Don't do that on bleeding-edge gcc (or
> bleeding-edge anything).

Found it ... Robert, you stuck a -Werror in the gzip file you uploaded
(but not, for some reason, the bzip).

--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com


From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-02 06:28:44
Message-ID: 4BB58E9C.6090703@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Tom, Robert, etc.

Ok, this issue seems to be specific to some versions of gcc. Note that
in testing this nobody enabled any special compile or environment
variables of any kind, so if there's a -Werror where it shouldn't be,
it's in our code.

Succeeds on:
Red Hat, gcc 4.4.3
OSX, gcc 4.2.1
Debian, gcc 4.3.2
FreeBSD, gcc 4.2.1

Fails on:
Ubuntu, gcc 4.3.3
Ubuntu, gcc 4.4.1
OSX 10.5, gcc 4.0.1*

I'd assume this was some kind of Ubuntu thing, except that I got it to
fail on OSX as well. Ideas?

--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com

* fails at:
gcc -no-cpp-precomp -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -Werror -I../../../../src/include -c -o dbsize.o dbsize.c
cc1: warnings being treated as errors
dbsize.c: In function ‘pg_relation_filepath’:
dbsize.c:577: warning: ‘rnode.spcNode’ may be used uninitialized in this
function
dbsize.c:577: warning: ‘rnode.dbNode’ may be used uninitialized in this
function
make[4]: *** [dbsize.o] Error 1
make[3]: *** [adt-recursive] Error 2
make[2]: *** [utils-recursive] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2


From: Takahiro Itagaki <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-02 07:25:14
Message-ID: 20100402162514.9776.52131E4D@oss.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


Josh Berkus <josh(at)agliodbs(dot)com> wrote:

> Ok, this issue seems to be specific to some versions of gcc. Note that
> in testing this nobody enabled any special compile or environment
> variables of any kind, so if there's a -Werror where it shouldn't be,
> it's in our code.

Hi, cygwin also has -Werror in default, and build was failed with a warning:

$ uname -a
CYGWIN_NT-5.1 <name> 1.7.2(0.225/5/3) 2010-03-24 21:12 i686 Cygwin

gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement
-Wendif-labels -fno-strict-aliasing -fwrapv -Werror -DDEF_PGPORT=5432 -I../../.
./src/interfaces/libpq -I../../../src/include -c -o pg_ctl.o pg_ctl.c
pg_ctl.c: In function `pgwin32_CommandLine':
pg_ctl.c:1083: warning: `cygwin_conv_to_full_win32_path' is deprecated (declared
at /usr/include/sys/cygwin.h:52)
make[3]: *** [pg_ctl.o] Error 1

Any objections for the following fix?

Index: src/bin/pg_ctl/pg_ctl.c
===================================================================
--- src/bin/pg_ctl/pg_ctl.c (HEAD)
+++ src/bin/pg_ctl/pg_ctl.c (fixed)
@@ -1080,7 +1080,7 @@

#ifdef __CYGWIN__
/* need to convert to windows path */
- cygwin_conv_to_full_win32_path(cmdLine, buf);
+ cygwin_conv_path(CCP_POSIX_TO_WIN_A, cmdLine, buf, sizeof(buf));
strcpy(cmdLine, buf);
#endif

Regards,
---
Takahiro Itagaki
NTT Open Source Software Center


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-02 08:48:33
Message-ID: -6645394320335160109@unknownmsgid
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Apr 2, 2010, at 2:28 AM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> Tom, Robert, etc.
>
> Ok, this issue seems to be specific to some versions of gcc. Note
> that
> in testing this nobody enabled any special compile or environment
> variables of any kind, so if there's a -Werror where it shouldn't be,
> it's in our code.
>
> Succeeds on:
> Red Hat, gcc 4.4.3
> OSX, gcc 4.2.1
> Debian, gcc 4.3.2
> FreeBSD, gcc 4.2.1
>
> Fails on:
> Ubuntu, gcc 4.3.3
> Ubuntu, gcc 4.4.1
> OSX 10.5, gcc 4.0.1*
>
> I'd assume this was some kind of Ubuntu thing, except that I got it to
> fail on OSX as well.

I can't easily get on line to check this just now, but did I
accidentally bundle my Makefile.custom into this tarball?

...Robert


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-02 09:18:14
Message-ID: 1270199894.5813.0.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On fre, 2010-04-02 at 04:48 -0400, Robert Haas wrote:
> I can't easily get on line to check this just now, but did I
> accidentally bundle my Makefile.custom into this tarball?

Uhum, if you had followed
http://wiki.postgresql.org/wiki/Alpha_release_process then this couldn't
have happened.


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-02 09:19:18
Message-ID: 1270199958.5813.1.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On tor, 2010-04-01 at 23:28 -0700, Josh Berkus wrote:
> Fails on:
> Ubuntu, gcc 4.3.3
> Ubuntu, gcc 4.4.1
> OSX 10.5, gcc 4.0.1*

Ubuntu builds with hardening options by default, which cause several
warnings.

Not sure about the OSX issue.


From: Dave Page <dpage(at)pgadmin(dot)org>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-02 09:22:33
Message-ID: p2i937d27e11004020222s5d06136dofd74a639bf0f0b5c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Fri, Apr 2, 2010 at 9:48 AM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:.
>
> I can't easily get on line to check this just now, but did I
> accidentally bundle my Makefile.custom into this tarball?

D'oh! That explains the pain I had building the binaries (mainly the
add-ons). We assumed that -Werror was an intentional addition in
9.0a5...

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-02 10:42:58
Message-ID: -4509897747708428826@unknownmsgid
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Apr 2, 2010, at 5:18 AM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> On fre, 2010-04-02 at 04:48 -0400, Robert Haas wrote:
>> I can't easily get on line to check this just now, but did I
>> accidentally bundle my Makefile.custom into this tarball?
>
> Uhum, if you had followed
> http://wiki.postgresql.org/wiki/Alpha_release_process then this
> couldn't
> have happened.

Forgive me for being a little annoyed here, but I actually did follow
that document quite closely. Unfortunately it omits to mention a few
key points.

What actually happened here is that I discovered that I couldn't run
"make distcheck" on a clean source tree. configure needs to be run
first, and the fine documentation makes no mention of what options
should be used. So naturally I just ran my dev-configure alias, which
also creates a one-line Makefile.custom. Now maybe I should have
realized that this was going to lead to bad things happening, but I
didn't. The wiki page in fact makes no reference at all to the state
that one's source tree should be in when doing all of this; it just
didn't occur to me that any random crap I happened to have lying
around there was going to get shipped.

I'm obviously very sorry for the hassle and frustration caused by this
mistake, especially to Dave Page, but hopefully you understand that I
was trying rather hard to get this right; and perhaps the Wiki page
can also be improved to mention some of these details.

...Robert


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-02 10:52:54
Message-ID: 1270205574.5813.3.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On fre, 2010-04-02 at 06:42 -0400, Robert Haas wrote:
> Forgive me for being a little annoyed here, but I actually did follow
> that document quite closely. Unfortunately it omits to mention a few
> key points.

Sorry, I had suspected that you didn't do a clean cvs export. It was a
frequent problem in the old days.

> What actually happened here is that I discovered that I couldn't run
> "make distcheck" on a clean source tree. configure needs to be run
> first, and the fine documentation makes no mention of what options
> should be used.

Doesn't matter. Just ./configure is enough.

> So naturally I just ran my dev-configure alias, which
> also creates a one-line Makefile.custom. Now maybe I should have
> realized that this was going to lead to bad things happening, but I
> didn't.

Ah, well, nothing can guard against that. ;-)

> The wiki page in fact makes no reference at all to the state
> that one's source tree should be in when doing all of this; it just
> didn't occur to me that any random crap I happened to have lying
> around there was going to get shipped.

The state is that after a cvs export.

> I'm obviously very sorry for the hassle and frustration caused by this
> mistake, especially to Dave Page, but hopefully you understand that I
> was trying rather hard to get this right; and perhaps the Wiki page
> can also be improved to mention some of these details.

Please add your findings.


From: GenieJapo <genie(dot)japo(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-02 12:13:30
Message-ID: 1270210410.4119.15.camel@geniejapo-laptop
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


Hi,

I use Ubuntu 9.04 (GCC 4.3.3).
Build was failed too.
I was able to compile with some small correction.
All are the one that relates only to the return value of write() and fgets().

(1) src/backend/utils/error/elog.c
elog.c: In function 'write_console':
elog.c:1698: error: ignoring return value of 'write', declared with attribute warn_unused_result
elog.c: In function 'write_pipe_chunks':
elog.c:2390: error: ignoring return value of 'write', declared with attribute warn_unused_result
elog.c:2399: error: ignoring return value of 'write', declared with attribute warn_unused_result

(2) src/interfaces/libpq/fe-connect.c
fe-connect.c: In function 'PasswordFromFile':
fe-connect.c:4403: error: ignoring return value of 'fgets', declared with attribute warn_unused_result

(3) src/port/common.c
common.c: In function 'handle_sigint':
common.c:247: error: ignoring return value of 'write', declared with attribute warn_unused_result
common.c:250: error: ignoring return value of 'write', declared with attribute warn_unused_result
common.c:251: error: ignoring return value of 'write', declared with attribute warn_unused_result

(4) src/bin/psql/prompt.c
prompt.c: In function 'get_prompt':
prompt.c:255: error: ignoring return value of 'fgets', declared with attribute warn_unused_result

Regards,
Genie Japo

> Guys,
>
> Hmmm. I appear to have had a compile error with that alpha5 tarball,
> in elog.c. No special options on compile, except an alternate directory
> and port.
>
> Ubunutu 9.10 server
> GCC 4.3.3
> Tries both:
> ./configure --with-pgport=5490 --prefix=/usr/local/pgsql/9.0/
> and:
> ./configure --with-pgport=5490 --prefix=/usr/local/pgsql/9.0/
> --enable-debug -enable-cassert
>
> make[4]: Entering directory
> `/usr/local/src/postgresql-9.0alpha5/src/backend/utils/error'
> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
> -fwrapv -Werror -I../../../../src/include -D_GNU_SOURCE -c -o assert.o
> assert.c
> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
> -fwrapv -Werror -I../../../../src/include -D_GNU_SOURCE -c -o elog.o
> elog.c
> cc1: warnings being treated as errors
> elog.c: In function ‘write_console’:
> elog.c:1698: error: ignoring return value of ‘write’, declared with
> attribute warn_unused_result
> elog.c: In function ‘write_pipe_chunks’:
> elog.c:2390: error: ignoring return value of ‘write’, declared with
> attribute warn_unused_result
> elog.c:2399: error: ignoring return value of ‘write’, declared with
> attribute warn_unused_result
> make[4]: *** [elog.o] Error 1
>
> --
> -- Josh Berkus
> PostgreSQL Experts Inc.
> http://www.pgexperts.com
>


From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-02 16:15:19
Message-ID: 4BB61817.4020806@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robert,

> I'm obviously very sorry for the hassle and frustration caused by this
> mistake, especially to Dave Page, but hopefully you understand that I
> was trying rather hard to get this right; and perhaps the Wiki page
> can also be improved to mention some of these details.

Bound to happen the first time someone other than Peter did the
bundling. Which was one of the points of the Alphas ... to get more
people familiar with the process.

Anyway, do you think you could put up replacement tarballs today? I'll
remove Makefile.custom and see if that fixes what I have ...

--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com


From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Josh Berkus" <josh(at)agliodbs(dot)com>
Cc: "Robert Haas" <robertmhaas(at)gmail(dot)com>, "Peter Eisentraut" <peter_e(at)gmx(dot)net>, <pgsql-hackers(at)postgresql(dot)org>,"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-02 16:34:02
Message-ID: 4BB5D62A02000025000303A1@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Josh Berkus <josh(at)agliodbs(dot)com> wrote:

> Robert,

> do you think you could put up replacement tarballs today?

If you don't hear from him soon, perhaps he's traveling:

http://archives.postgresql.org/pgsql-hackers/2010-03/msg01298.php

-Kevin


From: Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Alpha release this week?
Date: 2010-04-02 17:10:15
Message-ID: g2sdb471ace1004021010r5f79ddc4h1d8d9eab89ad53c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hello,

I'd like to put myself forward to test Dave's alpha5 windows binaries
tomorrow. I use that platform for about 75% of my pg work, and others
tend to have limited enthusiasm for it (as I guess I would if I had
the luxury of being able to), so that seems to be where I would be of
most use. I seem to recall Josh complaining about a lack of windows
testers too.

What areas are of particular concern? I've been following 9.0's
development from only a fairly high level.

I suppose I'll try out my 8.4 app, which uses dblink and hstore, on
9.0 alpha5 and see if anything breaks, and play around with the
features that are new to 9.0, as outlined on the postgres wiki for the
"SFPUG Beta Test Day". This seems a little bit haphazard though. Could
someone give me some additional direction?

You should be aware that I'm capable of building postgres on windows,
if that's useful. I might run the libpqxx 3.1 tests too, if that
helps.

Regards,
Peter Geoghegan


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-02 18:44:22
Message-ID: 5937513383674609967@unknownmsgid
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Apr 2, 2010, at 12:34 PM, Kevin Grittner
<Kevin(dot)Grittner(at)wicourts(dot)gov> wrote:
> Josh Berkus <josh(at)agliodbs(dot)com> wrote:
>
>> Robert,
>
>> do you think you could put up replacement tarballs today?
>
> If you don't hear from him soon, perhaps he's traveling:
>
> http://archives.postgresql.org/pgsql-hackers/2010-03/msg01298.php

Yeah, sorry, I'm not going to have ssh until Sunday, as previously
mentioned. But removing src/Makefile.custom ought to do it. Or
perhaps someone else can re-export the tag.

...Robert


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, Josh Berkus <josh(at)agliodbs(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-02 21:50:38
Message-ID: 1270245038.5813.8.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On fre, 2010-04-02 at 14:44 -0400, Robert Haas wrote:
> On Apr 2, 2010, at 12:34 PM, Kevin Grittner
> <Kevin(dot)Grittner(at)wicourts(dot)gov> wrote:
> > Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> >
> >> Robert,
> >
> >> do you think you could put up replacement tarballs today?
> >
> > If you don't hear from him soon, perhaps he's traveling:
> >
> > http://archives.postgresql.org/pgsql-hackers/2010-03/msg01298.php
>
> Yeah, sorry, I'm not going to have ssh until Sunday, as previously
> mentioned. But removing src/Makefile.custom ought to do it. Or
> perhaps someone else can re-export the tag.

I could give it a shot, but

a) The files on the FTP server master are not group writable, so I can't
overwrite them. (Most are not, apparently a general problem.)

b) The tag isn't actually version-stamped. configure/configure.in still
say 9.0devel.

Maybe it's best to delete everything so the "test fest" or whatever
tomorrow doesn't trip over this. But see a).


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, Josh Berkus <josh(at)agliodbs(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-02 22:07:37
Message-ID: 5326.1270246057@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> b) The tag isn't actually version-stamped. configure/configure.in still
> say 9.0devel.

Sure, because the tag is on a branch. According to the commit message
that went by, Robert did that correctly:

http://archives.postgresql.org/pgsql-committers/2010-03/msg00378.php

regards, tom lane


From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Alpha release this week?
Date: 2010-04-02 22:54:19
Message-ID: 4BB6759B.2000707@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Peter,

Thanks! Great to have you participating!

> I suppose I'll try out my 8.4 app, which uses dblink and hstore, on
> 9.0 alpha5 and see if anything breaks, and play around with the
> features that are new to 9.0, as outlined on the postgres wiki for the
> "SFPUG Beta Test Day". This seems a little bit haphazard though. Could
> someone give me some additional direction?

I'm in the process of writing up more suggested tests. I started with
pgbench performance comparisons:

http://wiki.postgresql.org/wiki/Pgbenchtesting

Also, we'll have a live video link and chat channel (per wiki page) for
tommorrow, so if you want to follow along/ask questions, you can.

--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, Josh Berkus <josh(at)agliodbs(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-03 00:39:32
Message-ID: -448198598857690804@unknownmsgid
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Apr 2, 2010, at 6:07 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
>> b) The tag isn't actually version-stamped. configure/configure.in
>> still
>> say 9.0devel.
>
> Sure, because the tag is on a branch. According to the commit message
> that went by, Robert did that correctly:
>
> http://archives.postgresql.org/pgsql-committers/2010-03/msg00378.php

I just took the patch Peter applied for alpha4 and ran it through sed,
applied the result, and sanity it.

...Robert


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-05 02:50:40
Message-ID: u2z603c8f071004041950xcaa48bd1sa3707865d43a4356@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Fri, Apr 2, 2010 at 2:44 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> On Apr 2, 2010, at 12:34 PM, Kevin Grittner
> <Kevin(dot)Grittner(at)wicourts(dot)gov> wrote:
>> Josh Berkus <josh(at)agliodbs(dot)com> wrote:
>>
>>> Robert,
>>
>>> do you think you could put up replacement tarballs today?
>>
>> If you don't hear from him soon, perhaps he's traveling:
>>
>> http://archives.postgresql.org/pgsql-hackers/2010-03/msg01298.php
>
> Yeah, sorry, I'm not going to have ssh until Sunday, as previously
> mentioned. But removing src/Makefile.custom ought to do it.  Or
> perhaps someone else can re-export the tag.

I have uploaded corrected tarballs alongside the originals.

ftp://developer.postgresql.org/pub/source/9.0alpha5/

...Robert


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Takahiro Itagaki <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-05 14:11:44
Message-ID: 20463.1270476704@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Takahiro Itagaki <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> writes:
> Any objections for the following fix?
> - cygwin_conv_to_full_win32_path(cmdLine, buf);
> + cygwin_conv_path(CCP_POSIX_TO_WIN_A, cmdLine, buf, sizeof(buf));

Buildfarm member brown_bat didn't like this. Seeing that that's the
*only* active cygwin buildfarm member, that's not a good percentage.

regards, tom lane


From: Greg Smith <greg(at)2ndquadrant(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Alpha release this week?
Date: 2010-04-05 20:08:02
Message-ID: 4BBA4322.3040105@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Josh Berkus wrote:
> I started with pgbench performance comparisons:
> http://wiki.postgresql.org/wiki/Pgbenchtesting
>

I'd already created
http://wiki.postgresql.org/wiki/Regression_Testing_with_pgbench for this
purpose, and it looks like you started where I ended that, more or less,
which is good because you didn't duplicate anything I'd already
written. I just recently finished a full exploration of how the
multi-threaded pgbench ends up working in practice, and will
update/merge those two as part of that once I get the full data
published where people can look at it. I've given up on expecting
ad-hoc pgbench testing done without an extremely clear methodology to
produce a lot of data, it's tough to get useful results out of that
without a clear plan to follow for finding useful data points.

--
Greg Smith 2ndQuadrant US Baltimore, MD
PostgreSQL Training, Services and Support
greg(at)2ndQuadrant(dot)com www.2ndQuadrant.us


From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Greg Smith <greg(at)2ndquadrant(dot)com>
Cc: Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Alpha release this week?
Date: 2010-04-05 20:12:05
Message-ID: 4BBA4415.3010003@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Greg,

> http://wiki.postgresql.org/wiki/Regression_Testing_with_pgbench for this
> purpose, and it looks like you started where I ended that, more or less,
> which is good because you didn't duplicate anything I'd already
> written.

Lucky! I didn't find that one when I looked.

FWIW, the new pgbench has been great for testing.

--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com


From: Takahiro Itagaki <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-06 05:29:33
Message-ID: 20100406142933.9C57.52131E4D@oss.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> > - cygwin_conv_to_full_win32_path(cmdLine, buf);
> > + cygwin_conv_path(CCP_POSIX_TO_WIN_A, cmdLine, buf, sizeof(buf));
>
> Buildfarm member brown_bat didn't like this. Seeing that that's the
> *only* active cygwin buildfarm member, that's not a good percentage.

Hmmm, but avoiding deprecated APIs would be good on the lastest cygwin.
How about checking the version with #ifdef?

#ifdef __CYGWIN__
/* need to convert to windows path */
+#if CYGWIN_VERSION_DLL_MAJOR >= 1007
cygwin_conv_path(CCP_POSIX_TO_WIN_A, cmdLine, buf, sizeof(buf));
+#else
+ cygwin_conv_to_full_win32_path(cmdLine, buf);
+#endif
strcpy(cmdLine, buf);
#endif

Regards,
---
Takahiro Itagaki
NTT Open Source Software Center


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Takahiro Itagaki <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-06 06:54:34
Message-ID: n2z9837222c1004052354t98188bces6d59cf8669b59b55@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Tue, Apr 6, 2010 at 07:29, Takahiro Itagaki
<itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> wrote:
>
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
>> > -   cygwin_conv_to_full_win32_path(cmdLine, buf);
>> > +   cygwin_conv_path(CCP_POSIX_TO_WIN_A, cmdLine, buf, sizeof(buf));
>>
>> Buildfarm member brown_bat didn't like this.  Seeing that that's the
>> *only* active cygwin buildfarm member, that's not a good percentage.
>
> Hmmm, but avoiding deprecated APIs would be good on the lastest cygwin.
> How about checking the version with #ifdef?
>
>  #ifdef __CYGWIN__
>        /* need to convert to windows path */
> +#if CYGWIN_VERSION_DLL_MAJOR >= 1007
>        cygwin_conv_path(CCP_POSIX_TO_WIN_A, cmdLine, buf, sizeof(buf));
> +#else
> +       cygwin_conv_to_full_win32_path(cmdLine, buf);
> +#endif
>        strcpy(cmdLine, buf);
>  #endif

That seems like the way to do it. Or if it's used in many places, use
a #define from one to the other - we don't want those #ifdef's all
over the place.

Seems cygwin may have deprecated that API a bit early :-), but there's
nothing we can do about that. If it's deprecated, they'll eventually
delete it...

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/