Greetings,

I've been testing Pike 8.0.147, and I've noticed that pgsql connections to 
postgres
don't appear to disconnect when the objects are destroyed, they linger until 
pike exits.

For example, when I run:

int main()
{
  object foo = Sql.Sql("pgsql://hungerf3@localhost:5432/hungerf3");
  destruct(foo);
  gc();
  sleep(60);
}

I still see an active connection in the pg_stat_activity view in the database 
until the
script exits.

The same script drops the database connection as soon as the object is 
destructed in 7.8.941

In both cases, I've been testing against Postgres 9.5 on FreeBSD.

-Jeff

Reply via email to