Received: from sss2.sss.pgh.pa.us (sss.pgh.pa.us [209.114.166.2]) by hub.org (8.9.3/8.9.3) with ESMTP id LAA21971 for ; Tue, 16 May 2000 11:11:45 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss2.sss.pgh.pa.us (8.9.3/8.9.3) with ESMTP id LAA18282; Tue, 16 May 2000 11:11:40 -0400 (EDT) To: Tim Brookes cc: Lamar Owen , pgsql-interfaces@postgresql.org Subject: Re: libpq++ tracing considered harmful (was Re: libpq++ memory problems) In-reply-to: <39215D67.6CAA6AD0@mcmail.com> References: <38FB6FA1.C63B030B@mcmail.com> <16483.956019092@sss.pgh.pa.us> <38FEB8DB.DBC3460E@mcmail.com> <2182.956243193@sss.pgh.pa.us> <38FF2126.9525DB82@mcmail.com> <38FF243E.E5C0E87E@wgcr.org> <8163.956252492@sss.pgh.pa.us> <38FF471B.4463ECF2@wgcr.org> <8280.956254952@sss.pgh.pa.us> <38FF4C3F.D79FCF4D@wgcr.org> <8424.956255864@sss.pgh.pa.us> <392117E9.D8118E6C@mcmail.com> <10624.958485880@sss.pgh.pa.us> <39215D67.6CAA6AD0@mcmail.com> Comments: In-reply-to Tim Brookes message dated "Tue, 16 May 2000 15:38:31 +0100" Date: Tue, 16 May 2000 11:11:40 -0400 Message-ID: <18276.958489900@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200005/8 Tim Brookes writes: > The code is simply a constructor and destructor call of PgDatabase, > called in succession, within an endless loop to emphasise the issue. > But you're right, something isn't being released - within the > destructor. All I can say is, I see absolutely zero leakage with 7.0 code and the attached test program. Are you sure you didn't link a 6.5 library by mistake, or something like that? regards, tom lane #include #include int main() { for (int i = 0; i < 10000; i++) { // Open the connection to the database and make sure it's OK PgDatabase data("dbname=template1 user=postgres"); if ( data.ConnectionBad() ) { cout << "Connection was unsuccessful..." << endl << "Error message returned: " << data.ErrorMessage() << endl; return 1; } } return 0; } // End main()