dbTalk Databases Forums  

unique ID

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss unique ID in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sql@aniota.com
 
Posts: n/a

Default unique ID - 07-23-2004 , 08:56 AM






I am starting to build an internet directory. What type of system
generated unique ID would you suggest?

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


Reply With Quote
  #2  
Old   
Bruno Wolff III
 
Posts: n/a

Default Re: unique ID - 07-23-2004 , 10:54 AM






On Fri, Jul 23, 2004 at 06:56:49 -0700,
sql (AT) aniota (DOT) com wrote:
Quote:
I am starting to build an internet directory. What type of system
generated unique ID would you suggest?
I am not sure that it makes sense to generate an ID for this purpose,
rather than using a URL, email address or whatever else makes sense
for your directory as the primary key.
However, if you do want one, you want to use bigserial (the in4 serial
might not be big enough for your purpose).

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings



Reply With Quote
  #3  
Old   
John Brookes
 
Posts: n/a

Default Re: unique ID - 07-23-2004 , 11:48 AM




----- Original Message -----
From: <sql (AT) aniota (DOT) com>
To: <pgsql-novice (AT) postgresql (DOT) org>
Sent: Friday, July 23, 2004 6:56 AM
Subject: [NOVICE] unique ID


Quote:
I am starting to build an internet directory. What type of system
generated unique ID would you suggest?

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

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



Reply With Quote
  #4  
Old   
John Brookes
 
Posts: n/a

Default Re: unique ID - 07-23-2004 , 11:48 AM




----- Original Message -----
From: "Bruno Wolff III" <bruno (AT) wolff (DOT) to>
To: <sql (AT) aniota (DOT) com>
Cc: <pgsql-novice (AT) postgresql (DOT) org>
Sent: Friday, July 23, 2004 8:54 AM
Subject: Re: [NOVICE] unique ID


Quote:
On Fri, Jul 23, 2004 at 06:56:49 -0700,
sql (AT) aniota (DOT) com wrote:
I am starting to build an internet directory. What type of system
generated unique ID would you suggest?

I am not sure that it makes sense to generate an ID for this purpose,
rather than using a URL, email address or whatever else makes sense
for your directory as the primary key.
However, if you do want one, you want to use bigserial (the in4 serial
might not be big enough for your purpose).

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.