[COMMITTERS] pgsql: Allow emit_log_hook to see original message text

2016-03-11 Thread Simon Riggs
Allow emit_log_hook to see original message text emit_log_hook could only see the translated text, making it harder to identify which message was being sent. Pass original text to allow the exact message to be identified, whichever language is used for logging. Discussion: 20160216.184755.5972114

[COMMITTERS] pgsql: Refactor receivelog.c parameters

2016-03-11 Thread Magnus Hagander
Refactor receivelog.c parameters Much cruft had accumulated over time with a large number of parameters passed down between functions very deep. With this refactoring, instead introduce a StreamCtl structure that holds the parameters, and pass around a pointer to this structure instead. This makes

[COMMITTERS] pgsql: Fix a typo, and remove unnecessary pgstat_report_wait_end().

2016-03-11 Thread Robert Haas
Fix a typo, and remove unnecessary pgstat_report_wait_end(). Per Amit Kapila. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/481c76abf4f5dc99af28a799741c324732a299c6 Modified Files -- src/backend/access/transam/xact.c | 3 --- src/backend/storage/lmgr/lw

[COMMITTERS] pgsql: psql: Don't automatically use expanded format when there's 1 col

2016-03-11 Thread Robert Haas
psql: Don't automatically use expanded format when there's 1 column. Andreas Karlsson and Robert Haas Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/69ab7b9d6c9b9e1d782ffad6e440a3615c63f621 Modified Files -- doc/src/sgml/ref/psql-ref.sgml | 5 +++-- src/

[COMMITTERS] pgsql: Allow setting sample ratio for auto_explain

2016-03-11 Thread Magnus Hagander
Allow setting sample ratio for auto_explain New configuration parameter auto_explain.sample_ratio makes it possible to log just a fraction of the queries meeting the configured threshold, to reduce the amount of logging. Author: Craig Ringer and Julien Rouhaud Review: Petr Jelinek Branch --

[COMMITTERS] pgsql: Minor additional refactoring of planner.c's PathTarget handling.

2016-03-11 Thread Tom Lane
Minor additional refactoring of planner.c's PathTarget handling. Teach make_group_input_target() and make_window_input_target() to work entirely with the PathTarget representation of tlists, rather than constructing a tlist and immediately deconstructing it into PathTarget format. In itself this

[COMMITTERS] pgsql: Tsvector editing functions

2016-03-11 Thread Teodor Sigaev
Tsvector editing functions Adds several tsvector editting function: convert tsvector to/from text array, set weight for given lexemes, delete lexeme(s), unnest, filter lexemes with given weights Author: Stas Kelvich with some editorization by me Reviewers: Tomas Vondram, Teodor Sigaev Branch ---

[COMMITTERS] pgsql: Bump catalog version missed in 6943a946c7e5eb72d53c0ce71f08a81a1

2016-03-11 Thread Teodor Sigaev
Bump catalog version missed in 6943a946c7e5eb72d53c0ce71f08a81a133503bd Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/a9eb6c83efd258bb7a658fefa0074e0e65efd673 Modified Files -- src/include/catalog/catversion.h | 2 +- 1 file changed, 1 insertion(+), 1 de

[COMMITTERS] pgsql: Fix merge affixes for numeric ones

2016-03-11 Thread Teodor Sigaev
Fix merge affixes for numeric ones Some dictionaries have duplicated base words with different affix set, we just merge that sets into one set. But previously merging of sets of affixes was actually a concatenation of strings but it's wrong for numeric representation of affixes because such repres

[COMMITTERS] pgsql: Fix Windows build broken in 6943a946c7e5eb72d53c0ce71f08a81a1335

2016-03-11 Thread Teodor Sigaev
Fix Windows build broken in 6943a946c7e5eb72d53c0ce71f08a81a133503bd Also it fixes dynamic array allocation disallowed by ANSI-C. Author: Stas Kelvich Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/b1fdc727c37b23da947b4b0d440f723f31beb84d Modified Files --

[COMMITTERS] pgsql: When appropriate, postpone SELECT output expressions till after

2016-03-11 Thread Tom Lane
When appropriate, postpone SELECT output expressions till after ORDER BY. It is frequently useful for volatile, set-returning, or expensive functions in a SELECT's targetlist to be postponed till after ORDER BY and LIMIT are done. Otherwise, the functions might be executed for every row of the ta

[COMMITTERS] pgsql: pg_upgrade: Convert old visibility map format to new format.

2016-03-11 Thread Robert Haas
pg_upgrade: Convert old visibility map format to new format. Commit a892234f830e832110f63fc0a2afce2fb21d1584 added a second bit per page to the visibility map, but pg_upgrade has been unaware of it up until now. Therefore, a pg_upgrade from an earlier major release of PostgreSQL to any commit pre

Re: [COMMITTERS] pgsql: Only try to push down foreign joins if the user mapping OIDs mat

2016-03-11 Thread Andres Freund
Hi, On 2016-01-28 19:09:01 +, Robert Haas wrote: > Only try to push down foreign joins if the user mapping OIDs match. > > Previously, the foreign join pushdown infrastructure left the question > of security entirely up to individual FDWs, but it would be easy for > a foreign data wrapper to

Re: [COMMITTERS] pgsql: Allow to trigger kernel writeback after a configurable number of

2016-03-11 Thread Andres Freund
Tom, On 2016-03-11 01:29:09 +, Andres Freund wrote: > Several operating systems allow some control over the kernel page > cache. Linux has sync_file_range(2), several posix systems have msync(2) > and posix_fadvise(2). sync_file_range(2) is preferable because it > requires no special setup, wh