I have written a daemon processor which will fetch rows from one database and insert them into another for synchronizing. It will fetch rows based on a boolean
boolean
I suggest that you do not index the table (the boolean is a low cardinality field), but partition it instead on the boolean value.
See: http://www.postgresql.org/docs/9.1/static/ddl-partitioning.html