pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: postgresql_sql@kaiserdigital.com
To: pgsql-sql@postgresql.org
Subject: Re: GUID in postgres
Date: Fri, 26 Oct 2001 11:31:16 -0700
Message-ID: <web-492905@davinci.ethosmedia.com> (raw)
In-Reply-To: <003501c15e41$a643a220$0c00a8c0@mouse>

Folks,

> I think most of you are missing the point here.
> 
> GUIDs are unique and they are required for Enterprise development. 

I don't know.  I have yet to hear a persuasive argument as to why none
of the schemes previously mentioned would not work.   While a "GUID"
automated by the RDBMS platform is convenient, it is by no means
necessary.  Any number of approaches can be substituted.

For example, I have a system that requires middleware-level interaction
between 3 database servers.  The main data tables in these databases all
have 2-column primary keys; one column for the (locally unique)
sequence, one column for the (globally unique) server ID.  This scheme
fulfills all of the functionality that you describe, without the
overhead of complex random seed mechanisms or other proprietary
overhead.  Also, any requests that are strictly local in nature need
only query the local id without worrying about the second column.

> Do a search for "multi master replication" and you should pick up
> some
> info on how to properly implement a GUID. The simplest approach is to
> use some combination of a sequence and the MAC address.

SO what happens if you swap out the network card?

-Josh

______AGLIO DATABASE SOLUTIONS___________________________
                                       Josh Berkus
  Complete information technology      josh@agliodbs.com
   and data management solutions       (415) 565-7293
  for law firms, small businesses        fax 621-2533
    and non-profit organizations.      San Francisco



view thread (12+ messages)  latest in thread

Message-ID: <web-492905@davinci.ethosmedia.com>
Permalink:  ../web-492905@davinci.ethosmedia.com/
Also on:    postgresql.org/message-id/web-492905@davinci.ethosmedia.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com, postgresql_sql@kaiserdigital.com
  Subject: Re: GUID in postgres
  In-Reply-To: <web-492905@davinci.ethosmedia.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox