Some of the core tables in the PostgreSQL schema are serials, but have their default as 0 instead of nextval(), which isn't really a problem due to the way Drupal gets the next ID to be used, but should be fixed for cleanliness' and consistency's sake -- most of the tables are set up to use serial numbers properly, but menu, node_revisions, and users aren't.
I'll be happy to submit a patch, but I'm going to wait until #76881 (PostgreSQL support for installer) gets committed, since I'll just have to redo the patch afterward anyway.
Comments
Comment #1
Steve Simms commentedComment #2
sammys commentedInstaller support has been committed to HEAD. Please proceed with your patch.
Cheers,
--
Sammy Spets
Synerger
http://www.synerger.com
Comment #3
Steve Simms commentedIt looks like you already took care of the menu case, so this one covers the remaining two instances that had separate "create sequence" commands instead of defining the fields as serials. I followed your pattern of including the CHECK constraint.
Comment #4
sammys commentedhehe... it's funny that I overlooked something so obvious. I'll blame it on the late hour I was rolling up those patches :)
Patch works. Ready to be committed.
Comment #5
sammys commentedoh and thanks smsimms for submitting the patch!
Comment #6
dries commentedThanks folks! Committed to CVS HEAD.
Comment #7
dries commentedComment #8
(not verified) commented