From:             [EMAIL PROTECTED]
Operating system: NetBSD/Alpha 1.5.1-current
PHP version:      4.0.4pl1
PHP Bug Type:     PostgreSQL related
Bug description:  postgresql backend process become stale after php page loads

with persistent connection on, i notice that with a web page load, it starts a new 
postgresql backend and detaches from it. therefore, the postgresql backend becomes 
stale and just hangs there for hours and days.

upon reloading the page, a new pgsql backend starts. within a minute, all the pgsql 
connection is maxed out, because all the processes become stale and were never 
released. this is from just me pressing reload 15 or so times. no one else have access 
to this server.

if i do 'apachectl stop' then 'apachectl start' again, the stale pgsql processes do 
get freed up. i didn't compile pgql with php as a loadable module. though it's using 
pgsql's dynamic library:

./configure \
--with-apxs \
--with-sablot=/usr/local/install/Sablot-0.44 \
--with-mnogosearch=/usr/local \
--with-pgsql=/usr/local \
--with-mysql=/usr/local \
--enable-libgcc \
--with-gnu-ld \
--with-zlib \
--with-system-regex \
--with-config-file-path=/usr/local/etc \
--enable-track-vars \
--enable-force-cgi-redirect \
--enable-discard-path \
--enable-memory-limit \
--enable-sysvsem \
--enable-sysvshm \
--enable-sockets \
--with-gd=/usr/pkg \
--with-ttf=/usr/pkg \

# ldd /usr/pkg/lib/httpd/
         -lz.0 => /usr/lib/
         -lxmltok => /usr/local/install/Sablot-0.44/lib/
         -lxmlparse => /usr/local/install/Sablot-0.44/lib/
         -lsablot => /usr/local/install/Sablot-0.44/lib/
         -lcrypt.0 => /usr/lib/
         -lpq.2 => /usr/local/lib/
         -lmysqlclient => /usr/local/lib/mysql/
         -ludmsearch => /usr/local/lib/
         -lm.0 => /usr/lib/
         -lc.12 => /usr/lib/
         -lintl.1 => /usr/pkg/lib/
         -lttf.4 => /usr/pkg/lib/
         -lpng.1 => /usr/pkg/lib/
         -ljpeg.62 => /usr/pkg/lib/
         -lXpm.4 => /usr/X11R6/lib/
         -lX11.6 => /usr/X11R6/lib/
         -lgd.1 => /usr/pkg/lib/
         -lresolv.1 => /usr/lib/

also note that the regular pgsql clients do release the backend postmaster right away 
after it quits.

there is a bug related to this one which showed similar symptoms: bug id# 8769

Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to