I am using PostgreSQL 9.5.8 and JDBC driver 42.1.4
If I execute the following statements and at Position #1, if I check the pg_stat_activity from another connection (let's say from the psql application), I can see that the 'Statement s' is still active: