Thread: FW: make rows unique across db's without UUIP on windows?

FW: make rows unique across db's without UUIP on windows?

From
"Kimball Johnson"
Date:

 

 

From: Kimball Johnson [mailto:kimballjohnson@sbcglobal.net]
Sent: Monday, June 02, 2008 7:42 PM
To: 'pgsql-general@postgresql.org'
Subject: make rows unique across db's without UUIP on windows?

 

Considering the discussions on the pgsql-bugs user list regarding ossp-uuip: Re: BUG #4167: When generating UUID using UUID-OSSP module, UUIDs are not unique on Windows,

 

What is the normal solution in pgsql-land for making a serious number of rows unique across multiple databases?

 

I mean particularly databases of different types (every type) used at various places (everywhere) on all platforms (even MS[TM])? You know… a UNIVERSAL id?

 

I gotta have it! I’m doing distributed list management.

 

Anyone got a real good, dependable, easy, and universally manageable solution?

 

Thanks,

 

Kimball Johnson

Re: FW: make rows unique across db's without UUIP on windows?

From
"Hiroshi Saito"
Date:
Hi.

Ahh,yes.
Patch is inspected for me now.
Please wait for a while.

Regards,
Hiroshi Saito

>From: Kimball Johnson [mailto:kimballjohnson@sbcglobal.net]
>Sent: Monday, June 02, 2008 7:42 PM
>To: 'pgsql-general@postgresql.org'
>Subject: make rows unique across db's without UUIP on windows?
>
>
>
>Considering the discussions on the pgsql-bugs user list regarding ossp-uuip:
>Re: BUG #4167: When generating UUID using UUID-OSSP module, UUIDs are not
>unique on Windows,
>
>
>
>What is the normal solution in pgsql-land for making a serious number of
>rows unique across multiple databases?
>
>
>
>I mean particularly databases of different types (every type) used at
>various places (everywhere) on all platforms (even MS[TM])? You know. a
>UNIVERSAL id?
>
>
>
>I gotta have it! I'm doing distributed list management.
>
>
>
>Anyone got a real good, dependable, easy, and universally manageable
>solution?
>
>
>
>Thanks,
>
>
>
>Kimball Johnson
>

Re: FW: make rows unique across db's without UUIP on windows?

From
"Kimball Johnson"
Date:
Hiroshi,

Thank you very much. I will look forward to it.

However, I really wanted to know what PGSQL people are doing now and have
done in the past to address this kind of issue.

Surely the need to have unique rows across databases has come up before?

Thanks,

Kimball

-----Original Message-----
From: Hiroshi Saito [mailto:z-saito@guitar.ocn.ne.jp]
Sent: Monday, June 02, 2008 8:46 PM
To: kjohnson@voiceandnetworksystems.com
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] FW: make rows unique across db's without UUIP on
windows?

Hi.

Ahh,yes.
Patch is inspected for me now.
Please wait for a while.

Regards,
Hiroshi Saito

>From: Kimball Johnson [mailto:kimballjohnson@sbcglobal.net]
>Sent: Monday, June 02, 2008 7:42 PM
>To: 'pgsql-general@postgresql.org'
>Subject: make rows unique across db's without UUIP on windows?
>
>
>
>Considering the discussions on the pgsql-bugs user list regarding
ossp-uuip:
>Re: BUG #4167: When generating UUID using UUID-OSSP module, UUIDs are not
>unique on Windows,
>
>
>
>What is the normal solution in pgsql-land for making a serious number of
>rows unique across multiple databases?
>
>
>
>I mean particularly databases of different types (every type) used at
>various places (everywhere) on all platforms (even MS[TM])? You know. a
>UNIVERSAL id?
>
>
>
>I gotta have it! I'm doing distributed list management.
>
>
>
>Anyone got a real good, dependable, easy, and universally manageable
>solution?
>
>
>
>Thanks,
>
>
>
>Kimball Johnson
>


Re: FW: make rows unique across db's without UUIP on windows?

From
"Hiroshi Saito"
Date:
Hi Kimball-san

Thanks,

This problem concentrated the discussions by the reason
 with not pgsql but uuid-ossp.

Certainly, I think that uuid is effective and the best for the deflecting solution.

Regards,
Hiroshi Saito

>Hiroshi,
>
>Thank you very much. I will look forward to it.
>
>However, I really wanted to know what PGSQL people are doing now and have
>done in the past to address this kind of issue.
>
>Surely the need to have unique rows across databases has come up before?
>
>Thanks,
>
>Kimball
>
>-----Original Message-----
>From: Hiroshi Saito [mailto:z-saito@guitar.ocn.ne.jp]
>Sent: Monday, June 02, 2008 8:46 PM
>To: kjohnson@voiceandnetworksystems.com
>Cc: pgsql-general@postgresql.org
>Subject: Re: [GENERAL] FW: make rows unique across db's without UUIP on
>windows?
>
>Hi.
>
>Ahh,yes.
>Patch is inspected for me now.
>Please wait for a while.
>
>Regards,
>Hiroshi Saito
>
>>From: Kimball Johnson [mailto:kimballjohnson@sbcglobal.net]
>>Sent: Monday, June 02, 2008 7:42 PM
>>To: 'pgsql-general@postgresql.org'
>>Subject: make rows unique across db's without UUIP on windows?
>>
>>
>>
>>Considering the discussions on the pgsql-bugs user list regarding
>ossp-uuip:
>>Re: BUG #4167: When generating UUID using UUID-OSSP module, UUIDs are not
>>unique on Windows,
>>
>>
>>
>>What is the normal solution in pgsql-land for making a serious number of
>>rows unique across multiple databases?
>>
>>
>>
>>I mean particularly databases of different types (every type) used at
>>various places (everywhere) on all platforms (even MS[TM])? You know. a
>>UNIVERSAL id?
>>
>>
>>
>>I gotta have it! I'm doing distributed list management.
>>
>>
>>
>>Anyone got a real good, dependable, easy, and universally manageable
>>solution?
>>
>>
>>
>>Thanks,
>>
>>
>>
>>Kimball Johnson
>>


Re: FW: make rows unique across db's without UUIP on windows?

From
"Hiroshi Saito"
Date:
Hi Kimball-san

Thanks,

This problem concentrated the discussions by the reason
 with not pgsql but uuid-ossp.

Certainly, I think that uuid is effective and the best for the deflecting solution.

Regards,
Hiroshi Saito

>Hiroshi,
>
>Thank you very much. I will look forward to it.
>
>However, I really wanted to know what PGSQL people are doing now and have
>done in the past to address this kind of issue.
>
>Surely the need to have unique rows across databases has come up before?
>
>Thanks,
>
>Kimball
>
>-----Original Message-----
>From: Hiroshi Saito [mailto:z-saito@guitar.ocn.ne.jp]
>Sent: Monday, June 02, 2008 8:46 PM
>To: kjohnson@voiceandnetworksystems.com
>Cc: pgsql-general@postgresql.org
>Subject: Re: [GENERAL] FW: make rows unique across db's without UUIP on
>windows?
>
>Hi.
>
>Ahh,yes.
>Patch is inspected for me now.
>Please wait for a while.
>
>Regards,
>Hiroshi Saito
>
>>From: Kimball Johnson [mailto:kimballjohnson@sbcglobal.net]
>>Sent: Monday, June 02, 2008 7:42 PM
>>To: 'pgsql-general@postgresql.org'
>>Subject: make rows unique across db's without UUIP on windows?
>>
>>
>>
>>Considering the discussions on the pgsql-bugs user list regarding
>ossp-uuip:
>>Re: BUG #4167: When generating UUID using UUID-OSSP module, UUIDs are not
>>unique on Windows,
>>
>>
>>
>>What is the normal solution in pgsql-land for making a serious number of
>>rows unique across multiple databases?
>>
>>
>>
>>I mean particularly databases of different types (every type) used at
>>various places (everywhere) on all platforms (even MS[TM])? You know. a
>>UNIVERSAL id?
>>
>>
>>
>>I gotta have it! I'm doing distributed list management.
>>
>>
>>
>>Anyone got a real good, dependable, easy, and universally manageable
>>solution?
>>
>>
>>
>>Thanks,
>>
>>
>>
>>Kimball Johnson
>>

Re: FW: make rows unique across db's without UUIP on windows?

From
Bill Moran
Date:
In response to "Kimball Johnson" <kjohnson@voiceandnetworksystems.com>:
>
> What is the normal solution in pgsql-land for making a serious number of
> rows unique across multiple databases?
>
>
>
> I mean particularly databases of different types (every type) used at
> various places (everywhere) on all platforms (even MS[TM])? You know. a
> UNIVERSAL id?

Just give each separate system it's own unique identifier and a sequence
to append to it.

--
Bill Moran
Collaborative Fusion Inc.
http://people.collaborativefusion.com/~wmoran/

wmoran@collaborativefusion.com
Phone: 412-422-3463x4023

Re: FW: make rows unique across db's without UUIP on windows?

From
"Kimball Johnson"
Date:
Bill, thanks, that made me think a while.

But doesn't that just push the problem up the chain a notch?

Adding a table id makes the row unique in the database but not beyond.

Then you add a database id to the table/row id and you are unique across
databases?

But can you be universally unique without being universal?

I thought I needed to have an id that would mark any column that comes from
that row with its unique origin row.

With a GUID I'm pretty much home.

But no series of semi-unique keys will ever become as unique as a GUID, will
it? That is, until you add a service id to the database id and a server id
to the service id and a rack id to the server id and a floor id to the rack
id and a bldg id to the floor id and so forth up the chain until you get 64
values in your multi-valued index. And then also make sure none of the
combinations of 64 values repeats anywhere in your global enterprise.

At that point everyone using a system that doesn't have a GUID type changes
the subject and asks, 'you sure you need that?'

But I don't have to need it so much if I've got it. All I have to need it is
a little and I can use it. Then if I need it more later, I've already got
it.

It's only when I don't have it that people say, 'you sure you need it?'

Know what I mean?

Thanks,

Kimball

-----Original Message-----
From: Bill Moran [mailto:wmoran@collaborativefusion.com]
Sent: Tuesday, June 03, 2008 5:57 AM
To: kjohnson@voiceandnetworksystems.com
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] FW: make rows unique across db's without UUIP on
windows?

In response to "Kimball Johnson" <kjohnson@voiceandnetworksystems.com>:
>
> What is the normal solution in pgsql-land for making a serious number of
> rows unique across multiple databases?
>
>
>
> I mean particularly databases of different types (every type) used at
> various places (everywhere) on all platforms (even MS[TM])? You know. a
> UNIVERSAL id?

Just give each separate system it's own unique identifier and a sequence
to append to it.

--
Bill Moran
Collaborative Fusion Inc.
http://people.collaborativefusion.com/~wmoran/

wmoran@collaborativefusion.com
Phone: 412-422-3463x4023