[COMMITTERS] pgsql: libpq: Small code clarification, and avoid casting away const

2012-03-06 Thread Peter Eisentraut
libpq: Small code clarification, and avoid casting away const Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/e685a8e6651b0e55996e6eba6917302607866793 Modified Files -- src/interfaces/libpq/fe-auth.c | 14 -- 1 files changed, 8 insertions(+),

[COMMITTERS] pgsql: Add a hook for processing messages due to be sent to the server

2012-03-06 Thread Tom Lane
Add a hook for processing messages due to be sent to the server log. Use-cases for this include custom log filtering rules and custom log message transmission mechanisms (for instance, lossy log message collection, which has been discussed several times recently). As is our common practice for ho

[COMMITTERS] pgsql: Typo fix.

2012-03-06 Thread Robert Haas
Typo fix. Fujii Masao Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/bc97c38115ed48c1dd27e9d534faae204427f9a5 Modified Files -- src/backend/access/transam/xlog.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) -- Sent via pgsql-committers

[COMMITTERS] pgsql: Make the comments more clear on the fact that UpdateFullPageWrit

2012-03-06 Thread Heikki Linnakangas
Make the comments more clear on the fact that UpdateFullPageWrites() is not safe to call concurrently from multiple processes. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/e587e2e3e39ec54772905b8e0ac7155a03253934 Modified Files -- src/backend/access/tr

[COMMITTERS] pgsql: Simplify the way changes to full_page_writes are logged.

2012-03-06 Thread Heikki Linnakangas
Simplify the way changes to full_page_writes are logged. It's harmless to do full page writes even when not strictly necessary, so when turning full_page_writes on, we can set the global flag first, and then call XLogInsert. Likewise, when turning it off, we can write the WAL record first, and the

[COMMITTERS] pgsql: Remove extra copies of LogwrtResult.

2012-03-06 Thread Heikki Linnakangas
Remove extra copies of LogwrtResult. This simplifies the code a little bit. The new rule is that to update XLogCtl->LogwrtResult, you must hold both WALWriteLock and info_lck, whereas before we had two copies, one that was protected by WALWriteLock and another protected by info_lck. The code that