Is there a timeout for idle PostgreSQL connections?

[code type=sql]
select * from pg_stat_activity

[code type=sql]
select pg_terminate_backend(pid) from pg_stat_activity
where datname = ‘my-database’
AND pid <> pg_backend_pid()
AND state = ‘idle’
AND state_change < current_timestamp - INTERVAL '30' MINUTE;

http://stackoverflow.com/questions/13236160/is-there-a-timeout-for-idle-postgresql-connections