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 smal

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 then

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 wrote: > On Thu, Oct 31, 2013 at 2:44 PM, Garick Hamlin 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 s

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 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 portable. I think

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 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 wrote: >> > On Thu, Oct 31, 2013 at 09:54:14PM +0900, MauMau wrote: >> >> From: "Robert Haas" >> >>> ISTM that the biggest proble

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 wrote: > > On Thu, Oct 31, 2013 at 09:54:14PM +0900, MauMau wrote: > >> From: "Robert Haas" > >>> ISTM that the biggest problem is that we don't have a random number > >>> generator which

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 wrote: > On Thu, Oct 31, 2013 at 09:54:14PM +0900, MauMau wrote: >> From: "Robert Haas" >>> 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.

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" >> 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 sup

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 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 working on Windows. --

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

2013-10-31 Thread MauMau
From: "Robert Haas" 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 simple enough, prov

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 wrote: > > "MauMau" 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 > > maintainership, hook line an

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 wrote: > "MauMau" writes: >> From: "Tom Lane" >>> 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 wel

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

2013-10-30 Thread Tom Lane
"MauMau" writes: > From: "Tom Lane" >> 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 patch for built-in UUID > ge

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

2013-10-30 Thread MauMau
From: "Tom Lane" Alvaro Herrera 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.) Would i

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

2013-10-30 Thread MauMau
From: "Hiroshi Saito" 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 (uuid-1.6.2_win32_p

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 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 s

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

2013-10-30 Thread Tom Lane
Alvaro Herrera 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.) rega

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 cod

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' addre

[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 W

[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/ http://sourcef