Re: [HACKERS] destroydb doesn't close connection with client (httpd <-> pg) - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] destroydb doesn't close connection with client (httpd <-> pg)
Date
Msg-id 199911292225.RAA15288@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] destroydb doesn't close connection with client (httpd <-> pg)  (Edmund Mergl <E.Mergl@bawue.de>)
Responses Re: [HACKERS] destroydb doesn't close connection with client (httpd <-> pg)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Can someone comment on where we are on this?

[Charset iso-8859-2 unsupported, filtering to ASCII...]
> Oleg Bartunov wrote:
> > 
> > I have Web site where I use persistent connection between
> > httpd (Apache) and database (postgres,6.5). I noticed strange
> > results I got after reloading page with results from query
> > when I destroydb , createdb, fill db ( with the same data ).
> > It seems backend doesn't close connection when db is destroyed
> > and this produces unpredictable results. My application is
> > written in Perl  and uses DBI/DBD for persistent connection.
> > I don't know is it DBI/DBD problem or backend must close
> > all connections to DB when it destroyed.
> > 
> >         Regards,
> >                 Oleg
> > _____________________________________________________________
> > Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
> > Sternberg Astronomical Institute, Moscow University (Russia)
> > Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
> > phone: +007(095)939-16-83, +007(095)939-23-83
> 
> 
> 
> This is not DBI/DBD-Pg specific.
> 
> A short test with psql shows, that this seems to be 
> a bug of postgresql itself.
> 
> Create and fill a database. Connect to this database with psql
> and perform some query. Without disconnecting destroy and re-create 
> the database but insert this time different data. Performing
> the same query a second time will retrieve the same data as before 
> 
> 
> Edmund
> 
> 
> 
> -- 
> Edmund Mergl          mailto:E.Mergl@bawue.de
> Im Haldenhau 9        http://www.bawue.de/~mergl
> 70565 Stuttgart       fon: +49 711 747503
> Germany
> 
> 


--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Bizarre coding in _bt_binsrch
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] having bug report