I don't know much about PgSQL but with Oracle you can alter a table to add constraints.
So it doesn't matter what stage of development you're at. Just add the constraints. It is worth doing a backup of your db first, just in case it all goes "tits-up".
Sorry I can't give you more help, but I've never user PgSQL.