Lists: | Postg토토 커뮤니티SQL : Postg토토pgsql-patches |
---|
From: | "Magnus Hagander" <mha(at)sollentuna(dot)net> |
---|---|
To: | <pgsql-patches(at)postgresql(dot)org>, "pgsql-hackers-win32" <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Updated win32 readdir patch |
Date: | 2004-02-08 21:24:25 |
Message-ID: | 6BCB9D8A16AC4241919521715F4D8BCE34B16E@algol.sollentuna.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 pgsql-patches |
Hello!
Here is an updated version of the win32 readdir patch.
1) Now puts in exactly the same change as the current-cvs mingw code
does. (see
http://cvs.sourceforge.net/viewcvs.py/mingw/runtime/mingwex/dirent.c?r1=
1.3&r2=1.4, second part of the patch).
2) Updates both xlog.c and slru.c in backend/access/transam/
3) Also updates pg_resetxlog, which also uses readdir() and checks the
errno value after the loop.
Claudio - if this is not applied, please updated the win32 status page
to point to this patch instead of the previous incomplete one.
//Magnus
<<win32_readdir.patch>>
Attachment | Content-Type | Size |
---|---|---|
win32_readdir.patch | application/octet-stream | 1.8 KB |
From: | Neil Conway <neilc(at)samurai(dot)com> |
---|---|
To: | "Magnus Hagander" <mha(at)sollentuna(dot)net> |
Cc: | <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Updated win32 readdir patch |
Date: | 2004-02-08 22:11:06 |
Message-ID: | 87bro98bnp.fsf@mailbox.samurai.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 pgsql-patches |
"Magnus Hagander" <mha(at)sollentuna(dot)net> writes:
> Here is an updated version of the win32 readdir patch.
Do we actually need to apply this to the main CVS tree, or can we just
wait for a mingw release that includes the fix?
-Neil
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Magnus Hagander" <mha(at)sollentuna(dot)net> |
Cc: | pgsql-patches(at)postgresql(dot)org, "pgsql-hackers-win32" <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: [PATCHES] Updated win32 readdir patch |
Date: | 2004-02-08 22:17:05 |
Message-ID: | 5829.1076278625@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | Postg롤 토토SQL : Postg롤 Postg스포츠 토토 결과SQL |
"Magnus Hagander" <mha(at)sollentuna(dot)net> writes:
> Here is an updated version of the win32 readdir patch.
> 1) Now puts in exactly the same change as the current-cvs mingw code
> does. (see
> http://cvs.sourceforge.net/viewcvs.py/mingw/runtime/mingwex/dirent.c?r1=3D
> 1.3&r2=3D1.4, second part of the patch).
I don't really agree with cluttering our code with temporary workarounds
for a mingw bug.
regards, tom lane
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Neil Conway <neilc(at)samurai(dot)com> |
Cc: | Magnus Hagander <mha(at)sollentuna(dot)net>, pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Updated win32 readdir patch |
Date: | 2004-02-09 16:51:01 |
Message-ID: | 200402091651.i19Gp1R12994@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | Postg토토 커뮤니티SQL : Postg토토 pgsql-patches |
Neil Conway wrote:
> "Magnus Hagander" <mha(at)sollentuna(dot)net> writes:
> > Here is an updated version of the win32 readdir patch.
>
> Do we actually need to apply this to the main CVS tree, or can we just
> wait for a mingw release that includes the fix?
We might be able to wait, but the current MinGW has other bugs so we
can't use it. I think we can include it in CVS and add a TODO to remove
it when MinGW is upgraded.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Magnus Hagander <mha(at)sollentuna(dot)net> |
Cc: | pgsql-patches(at)postgresql(dot)org, pgsql-hackers-win32 <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: Updated win32 readdir patch |
Date: | 2004-02-12 20:30:46 |
Message-ID: | 200402122030.i1CKUk405201@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 pgsql-patches |
Your patch has been added to the PostgreSQL unapplied patches list at:
http://momjian.postgresql.org/cgi-bin/pgpatches
I will try to apply it within the next 48 hours.
---------------------------------------------------------------------------
Magnus Hagander wrote:
> Hello!
>
> Here is an updated version of the win32 readdir patch.
>
> 1) Now puts in exactly the same change as the current-cvs mingw code
> does. (see
> http://cvs.sourceforge.net/viewcvs.py/mingw/runtime/mingwex/dirent.c?r1=
> 1.3&r2=1.4, second part of the patch).
>
> 2) Updates both xlog.c and slru.c in backend/access/transam/
>
> 3) Also updates pg_resetxlog, which also uses readdir() and checks the
> errno value after the loop.
>
> Claudio - if this is not applied, please updated the win32 status page
> to point to this patch instead of the previous incomplete one.
>
> //Magnus
> <<win32_readdir.patch>>
Content-Description: win32_readdir.patch
[ Attachment, skipping... ]
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Magnus Hagander <mha(at)sollentuna(dot)net> |
Cc: | pgsql-patches(at)postgresql(dot)org, pgsql-hackers-win32 <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: Updated win32 readdir patch |
Date: | 2004-02-17 03:47:44 |
Message-ID: | 200402170347.i1H3liK02495@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 pgsql-patches |
Patch applied. Thanks.
Also, I updated the Win32 patch to mention removing the patch when
runtime/mingwex/dirent.c rev 1.4 is released.
---------------------------------------------------------------------------
Magnus Hagander wrote:
> Hello!
>
> Here is an updated version of the win32 readdir patch.
>
> 1) Now puts in exactly the same change as the current-cvs mingw code
> does. (see
> http://cvs.sourceforge.net/viewcvs.py/mingw/runtime/mingwex/dirent.c?r1=
> 1.3&r2=1.4, second part of the patch).
>
> 2) Updates both xlog.c and slru.c in backend/access/transam/
>
> 3) Also updates pg_resetxlog, which also uses readdir() and checks the
> errno value after the loop.
>
> Claudio - if this is not applied, please updated the win32 status page
> to point to this patch instead of the previous incomplete one.
>
> //Magnus
> <<win32_readdir.patch>>
Content-Description: win32_readdir.patch
[ Attachment, skipping... ]
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073