﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
8901	Django's guessed postgresql sequence name is incorrect if the resulting sequence name is longer than max_identifier_length	adam@…	nobody	"The autogenerated sequence name for a primary key in postgresql is ""tablename_pkname_seq"".  last_insert_id() constructs this name from the tablename and the pkname, but it doesn't correctly truncate it if it's too long.  The sequence name must be <= 63 characters.  If it's too long, then the tablename and pkname are truncated to 29 characters each.  It's possible for the tablename to be 28 characters and the pkname to be 30 characters.  30 is greater than 29, but the whole thing is exactly 63 characters, so no truncation is needed.  I've included a patch against Django 1.0.  It's been tested on postgres 8.1 on Windows.  I have not tried any other versions."	Bug	closed	Database layer (models, ORM)	dev	Normal	fixed	postgresql	aball@… Skaffen Leon van der Ree	Accepted	1	0	0	1	0	0
