diaspora/diaspora — pull request #3050 by justindthomas (2012-03-24 19:37:18+00:00)
Title: Add Resque.before_fork to correct critical problem for PostgreSQL

This corrects the first error in this pastebin: http://pastebin.com/AptJqZcT

Specifically, this is the error:

Exception: ActiveRecord::StatementInvalid
Error: PG::Error: ERROR: prepared statement "a3" already exists : SELECT DISTINCT(attr.attname) FROM pg_attribute attr INNER JOIN pg_depend dep ON attr.attrelid = dep.refobjid AND attr.attnum = dep.refobjsubid INNER JOIN pg_constraint cons ON attr.attrelid = cons.conrelid AND attr.attnum = cons.conkey[1] WHERE cons.contype = 'p' AND dep.refobjid = $1::regclass

That error prevented my pod from receiving any remote updates or messages.