Tom Copeland's Recent Posts

RSS Feeds

« PMD on [some large Java project] | Main | Good times with Oracle JDeveloper update center »

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83451d3c069e200e55070a7f28834

Listed below are links to weblogs that reference Jabber server + PostgreSQL == good:

Comments

In jabberd_tables_for_postgresql.sql, in the CREATE TABLE commands, why do you manually create the sequences? Why not just set the type of the id columns to SERIAL?

CREATE TABLE users (id SERIAL PRIMARY KEY, ...);

Hi Daniel -
Hm, that's a good question... that does seem much nicer. I guess I've just always explicitly named and referenced the sequences, but if I'm always using the same naming scheme, what's the point?
Thanks! I'll update this once I've changed and verified my scripts.
Yours,
Tom

The comments to this entry are closed.