﻿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
5707	Aliases truncated to 64 characters on Postgres	jhenry@…	nobody	"With a large join or long table names, postgres will truncate the aliases of the tables to 64 characters resulting in duplicate table names on the query.  This makes the query unexecutable.

One solution is to shorten long alias names.  I wrote something that modifies the alias when it is produced in db/models/query.py, but unfortunately, the join conditions get the alias as well, so the change will probably have to ultimately go into the SortedDict class to truncate and make the names unique in 64 characters there.

An alternate solution would be to prefix the aliases with incrementing numbers since the truncation will still preserve unique names for the aliases.
"		closed	Database layer (models, ORM)	dev		fixed	qs-rf-fixed		Accepted	0	0	0	0	0	0
