![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I've noticed that, even though I specified LOCAL5 as syslog facility, postgres nevertheless logs _some_ events to LOCAL0. |
|
Log lines look like: Oct 14 08:55:02 pavenlo root palga [local] SELECT: [17-1] LOG: duration: \ 2953.658 ms statement: select rapnaam from udps where ((geboortedatum = \ '1954-01-21') and (naamman ~ '^thie')) Oct 14 08:55:02 pavenlo root palga [local] SELECT: [17-2] limit 1000 |
|
+preload_libraries = '/usr/prod/postgres/rubriek:rub_initialize,/usr/prod/postgres/drap,/usr/prod/postgres/naam' |
#2
| |||
| |||
|
|
On Friday 14 October 2005 19:05, you wrote: [ redirecting to a more appropriate list ] +preload_libraries = '/usr/prod/postgres/rubriek:rub_initialize,/usr/prod/postgres/drap,/usr/p rod/postgres/naam' Han, what are these libraries? Is it possible that any of them are issuing openlog() calls? Yes, it does: static void log_error(const char *mess, int code) { openlog("PG_FETCH", 0, LOG_LOCAL0); syslog(LOG_ERR, "%s %d", mess, code); closelog(); } I didn't think of this because I didn't see the PG_FETCH in the log. |
#3
| |||
| |||
|
|
On Monday 17 October 2005 15:57, you wrote: What platform are you on, exactly? I'm hoping it's something we can look at the source of openlog for ... You sure can: Redhat Linux 9, glibc-2.3.2-27.9.7 |
![]() |
| Thread Tools | |
| Display Modes | |
| |