Re: [HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2016-02-01 Thread Alvaro Herrera
高增琦 wrote: > : ( > > still don't know how to build ossp-uuid on windows with MSVC. > Saito san's patch doesn't fix all errors during compiling... I don't understand why you want to build that specific module on Windows. Doesn't Windows have its own UUID generator that you can access, using a

Re: [HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2016-01-31 Thread 高增琦
: ( still don't know how to build ossp-uuid on windows with MSVC. Saito san's patch doesn't fix all errors during compiling... I will try to combine this patch and the win32build on sf.net Same questions again: How was the dll file in the community binary built? How to avoid duplicate UUIDs

Re: [HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2013-11-04 Thread Christopher Browne
On Thu, Oct 31, 2013 at 3:42 PM, Robert Haas robertmh...@gmail.com wrote: On Thu, Oct 31, 2013 at 2:44 PM, Garick Hamlin gham...@isc.upenn.edu wrote: I think using /dev/urandom directly would be surprising. At least it would have probably have taken me a while to figure out what was depleting

Re: [HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2013-10-31 Thread Robert Haas
On Wed, Oct 30, 2013 at 5:32 PM, Tom Lane t...@sss.pgh.pa.us wrote: MauMau maumau...@gmail.com writes: From: Tom Lane t...@sss.pgh.pa.us Yeah, but what shall we replace it with? And can we preserve the API contrib/uuid-ossp offers? (Maybe we shouldn't even try, but just deprecate that

Re: [HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2013-10-31 Thread Andres Freund
On 2013-10-31 08:22:14 -0400, Robert Haas wrote: On Wed, Oct 30, 2013 at 5:32 PM, Tom Lane t...@sss.pgh.pa.us wrote: MauMau maumau...@gmail.com writes: Note the lack of enthusiasm for taking on maintainership of the OSSP code. Pushing it into core would mean that we're buying into that

Re: [HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2013-10-31 Thread MauMau
From: Robert Haas robertmh...@gmail.com ISTM that the biggest problem is that we don't have a random number generator which generates enough bits of randomness to implement uuid_generate_v3. I think relatively few people would cry if we didn't support uuid_generate_v1(), and the others all look

Re: [HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2013-10-31 Thread Peter Eisentraut
On 10/30/13, 12:43 PM, Tom Lane wrote: Alvaro Herrera alvhe...@2ndquadrant.com writes: At this point, I think we need to consider ossp-uuid as dead code. Yeah, but what shall we replace it with? One possibility: https://github.com/petere/pglibuuid Not sure whether that has a chance of

Re: [HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2013-10-31 Thread Garick Hamlin
On Thu, Oct 31, 2013 at 09:54:14PM +0900, MauMau wrote: From: Robert Haas robertmh...@gmail.com ISTM that the biggest problem is that we don't have a random number generator which generates enough bits of randomness to implement uuid_generate_v3. I think relatively few people would cry if we

Re: [HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2013-10-31 Thread Robert Haas
On Thu, Oct 31, 2013 at 1:02 PM, Garick Hamlin gham...@isc.upenn.edu wrote: On Thu, Oct 31, 2013 at 09:54:14PM +0900, MauMau wrote: From: Robert Haas robertmh...@gmail.com ISTM that the biggest problem is that we don't have a random number generator which generates enough bits of randomness to

Re: [HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2013-10-31 Thread Garick Hamlin
On Thu, Oct 31, 2013 at 01:59:04PM -0400, Robert Haas wrote: On Thu, Oct 31, 2013 at 1:02 PM, Garick Hamlin gham...@isc.upenn.edu wrote: On Thu, Oct 31, 2013 at 09:54:14PM +0900, MauMau wrote: From: Robert Haas robertmh...@gmail.com ISTM that the biggest problem is that we don't have a

Re: [HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2013-10-31 Thread Christopher Browne
On Thu, Oct 31, 2013 at 2:44 PM, Garick Hamlin gham...@isc.upenn.edu wrote: On Thu, Oct 31, 2013 at 01:59:04PM -0400, Robert Haas wrote: On Thu, Oct 31, 2013 at 1:02 PM, Garick Hamlin gham...@isc.upenn.edu wrote: On Thu, Oct 31, 2013 at 09:54:14PM +0900, MauMau wrote: From: Robert Haas

Re: [HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2013-10-31 Thread Robert Haas
On Thu, Oct 31, 2013 at 2:44 PM, Garick Hamlin gham...@isc.upenn.edu wrote: I think using /dev/urandom directly would be surprising. At least it would have probably have taken me a while to figure out what was depleting the entropy pool here. Perhaps so; a bigger problem IMHO is that it's not

[HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2013-10-30 Thread MauMau
Hello, For a certain reason, I need to build PostgreSQL on Windows with OSSP UUID support to use UUID for primary keys. I have to use Visual Studio 2010. The original source code for OSSP UUID and its fork for Windows can be downloaded from: http://www.ossp.org/pkg/lib/uuid/

[HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2013-10-30 Thread MauMau
Hello, # Sorry, Saito san' address doesn't seem to exist, so excuse for sending again For a certain reason, I need to build PostgreSQL on Windows with OSSP UUID support to use UUID for primary keys. I have to use Visual Studio 2010. The original source code for OSSP UUID and its fork for

Re: [HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2013-10-30 Thread Hiroshi Saito
Hi MauMau-san it my bug patch applied to ver 1.6.2sorry.. then, I made the next patch is there, please see, http://winpg.jp/~saito/pg_work/OSSP_win32/ I will be adjusted and Ralf-san again. best regards, Hiroshi Saito (2013/10/30 21:45), MauMau wrote: Hello, # Sorry, Saito san' address

Re: [HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2013-10-30 Thread Alvaro Herrera
Hiroshi Saito escribió: Hi MauMau-san it my bug patch applied to ver 1.6.2sorry.. then, I made the next patch is there, please see, http://winpg.jp/~saito/pg_work/OSSP_win32/ I will be adjusted and Ralf-san again. At this point, I think we need to consider ossp-uuid as dead code.

Re: [HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2013-10-30 Thread Tom Lane
Alvaro Herrera alvhe...@2ndquadrant.com writes: At this point, I think we need to consider ossp-uuid as dead code. Yeah, but what shall we replace it with? And can we preserve the API contrib/uuid-ossp offers? (Maybe we shouldn't even try, but just deprecate that module and start fresh.)

Re: [HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2013-10-30 Thread Andrew Dunstan
On 10/30/2013 12:43 PM, Tom Lane wrote: Alvaro Herrera alvhe...@2ndquadrant.com writes: At this point, I think we need to consider ossp-uuid as dead code. Yeah, but what shall we replace it with? And can we preserve the API contrib/uuid-ossp offers? (Maybe we shouldn't even try, but just

Re: [HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2013-10-30 Thread MauMau
From: Hiroshi Saito hiro...@winpg.jp it my bug patch applied to ver 1.6.2sorry.. then, I made the next patch is there, please see, http://winpg.jp/~saito/pg_work/OSSP_win32/ I will be adjusted and Ralf-san again. Thanks. Yes, I wrote the wrong URL and meant this one. Is this patch

Re: [HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2013-10-30 Thread MauMau
From: Tom Lane t...@sss.pgh.pa.us Alvaro Herrera alvhe...@2ndquadrant.com writes: At this point, I think we need to consider ossp-uuid as dead code. Yeah, but what shall we replace it with? And can we preserve the API contrib/uuid-ossp offers? (Maybe we shouldn't even try, but just

Re: [HACKERS] How can I build OSSP UUID support on Windows to avoid duplicate UUIDs?

2013-10-30 Thread Tom Lane
MauMau maumau...@gmail.com writes: From: Tom Lane t...@sss.pgh.pa.us Yeah, but what shall we replace it with? And can we preserve the API contrib/uuid-ossp offers? (Maybe we shouldn't even try, but just deprecate that module and start fresh.) Would it be welcomed in this community if a