Search Postgresql Archives

log rotate and open connections

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm on 8.1 and having a client hang on log rotates.

To make the problem easier to duplicate, log rotates were set to two minutes:

redirect_stderr = on # Enable capturing of stderr into log log_directory = 'pg_log' # enabled for 2 minute rotation test log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # enabled for 2 minute rotation test log_rotation_age = 2 # changing to every 2 minutes to try and hang scheduler.

We have a daemon (written in C using libpq) that keeps a persistent open db connection.

When the log rotates, daemon queries hang instead of returning an error about the lost connection.

Suggestions?

Thanks,
Bob Gobeille
Hewlett Packard
Open Source Program Office
  (and http://fossology.org)



--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux