Обсуждение: ensure connection is closed in tutorial

Поиск
Список
Период
Сортировка

ensure connection is closed in tutorial

От
Alvin Fan
Дата:
Hello,

In the tutorial https://wiki.postgresql.org/wiki/Psycopg2_Tutorial,
shouldn't at the end of the page add a section to call conn.close()?

Reference in http://initd.org/psycopg/docs/connection.html, to ensure
the connection is closed.

Alvin



Re: ensure connection is closed in tutorial

От
Bruce Momjian
Дата:
On Wed, Jul  8, 2015 at 08:43:08PM -0700, Alvin Fan wrote:
> Hello,
> 
> In the tutorial https://wiki.postgresql.org/wiki/Psycopg2_Tutorial,
> shouldn't at the end of the page add a section to call conn.close()?
> 
> Reference in http://initd.org/psycopg/docs/connection.html, to ensure
> the connection is closed.

Uh, I don't know, but it is a wiki so you can make the correction. 
Thanks.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + Everyone has their own god. +