-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: PostgreSQL "native" uses sequence instead of seria
PostPosted: Tue Oct 04, 2005 7:57 am 
Newbie

Joined: Mon Jun 07, 2004 9:18 am
Posts: 13
Location: Torino, Italy
Anyone knows why the PostgreSQLDialect uses sequences instead of PostgreSQL "serial" or "bigserial" data type for the native id mapping ?

PostgreSQL 8 supports identity generation via serial and bigserial data types, and there is no reason to use sequences when mapping id as "native".

The documentation states that native picks identity, sequence or hilo depending on the capability of the DB. Since PostgreSQL 8 is able to handle identity, why is sequence used instead ?

Thanks !


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 04, 2005 9:44 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Well sounds like it also supports sequence, no?

Sequences, in general, are preferred since the inserts can be delayed until flush time. That is not the case with identity.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.