libpq++

From: "Belcher, Jim" <JBelcher(at)elastic(dot)com>
To: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: libpq++
Date: 2001-01-15 13:29:46
Message-ID: C42B8F21509DD411A8F400B0D049FF462A3AE7@mailman.elastic.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have a problem with postgres freeing resouces.

Consider the following routine.

int foo()
{
PgDatabase *pDatabase = new PgDatabase(cpDBName);

// Use the connection, insert a record etc.

delete pDatabase;
}

The delete call does not cause system resources to be freed, such
as the socket connection. If you call this function about 1010 times,
postgres will fail, stating that there are no system resources, too
many open files.

I am using postgrex 6.x

Thanks

Responses

  • Re: libpq++ at 2001-01-15 14:32:16 from Bruce Momjian

Browse pgsql-general by date

  From Date Subject
Next Message Sergey Filatov 2001-01-15 13:33:26 How to match percent sybmol via LIKE operator?
Previous Message Francisco Eriko Barreto Brito 2001-01-15 11:35:50 Help - VACUMM