Bruce Momjian <pgman@candle.pha.pa.us> writes:
> What I can imagine making things very easy is a readonly GUC that returns
> the current log file name.
... which unfortunately is not going to happen since the backends can't
see inside the syslogger process to know what it's doing.
ATM I think the best you can do is look for the newest mod date among
the files in the log directory.
regards, tom lane