tr pattinam is named after a king like the town of thirunallar. tirumalairayanpattinam is named after king thirumalai raja, who ruled this town from 1453 to 1468. at his time both the river and the town was named after him. but later the name of the town changed to tirumalairayan pattinam.