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

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.