[COMMITTERS] pgsql: Avoid passing function pointers across process boundaries.

2017-04-14 Thread Tom Lane
Avoid passing function pointers across process boundaries. We'd already recognized that we can't pass function pointers across process boundaries for functions in loadable modules, since a shared library could get loaded at different addresses in different processes. But actually the practice doe

[COMMITTERS] pgsql: doc: Fix typo

2017-04-14 Thread Peter Eisentraut
doc: Fix typo Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/5a617ab3e691aec56725960e6d28c98c8af6ddaa Modified Files -- doc/src/sgml/client-auth.sgml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- Sent via pgsql-committers mailing list (p

[COMMITTERS] pgsql: Use one transaction while reading postgres.bki, not one per line

2017-04-14 Thread Tom Lane
Use one transaction while reading postgres.bki, not one per line. AFAICT, the only actual benefit of closing a bootstrap transaction is to reclaim transient memory. We can do that a lot more cheaply by just doing a MemoryContextReset on a suitable context. This gets the runtime of the "bootstrap

[COMMITTERS] pgsql: Clean up manipulations of hash indexes' hasho_flag field.

2017-04-14 Thread Tom Lane
Clean up manipulations of hash indexes' hasho_flag field. Standardize on testing a hash index page's type by doing (opaque->hasho_flag & LH_PAGE_TYPE) == LH_xxx_PAGE Various places were taking shortcuts like opaque->hasho_flag & LH_BUCKET_PAGE which while not actually wrong, is sti

[COMMITTERS] pgsql: Further fix pg_trgm's extraction of trigrams from regular expres

2017-04-14 Thread Tom Lane
Further fix pg_trgm's extraction of trigrams from regular expressions. Commit 9e43e8714 turns out to have been insufficient: not only is it necessary to track tentative parent links while considering a set of arc removals, but it's necessary to track tentative flag additions as well. This is beca

[COMMITTERS] pgsql: Further fix pg_trgm's extraction of trigrams from regular expres

2017-04-14 Thread Tom Lane
Further fix pg_trgm's extraction of trigrams from regular expressions. Commit 9e43e8714 turns out to have been insufficient: not only is it necessary to track tentative parent links while considering a set of arc removals, but it's necessary to track tentative flag additions as well. This is beca

[COMMITTERS] pgsql: Further fix pg_trgm's extraction of trigrams from regular expres

2017-04-14 Thread Tom Lane
Further fix pg_trgm's extraction of trigrams from regular expressions. Commit 9e43e8714 turns out to have been insufficient: not only is it necessary to track tentative parent links while considering a set of arc removals, but it's necessary to track tentative flag additions as well. This is beca

[COMMITTERS] pgsql: Further fix pg_trgm's extraction of trigrams from regular expres

2017-04-14 Thread Tom Lane
Further fix pg_trgm's extraction of trigrams from regular expressions. Commit 9e43e8714 turns out to have been insufficient: not only is it necessary to track tentative parent links while considering a set of arc removals, but it's necessary to track tentative flag additions as well. This is beca

[COMMITTERS] pgsql: Further fix pg_trgm's extraction of trigrams from regular expres

2017-04-14 Thread Tom Lane
Further fix pg_trgm's extraction of trigrams from regular expressions. Commit 9e43e8714 turns out to have been insufficient: not only is it necessary to track tentative parent links while considering a set of arc removals, but it's necessary to track tentative flag additions as well. This is beca

[COMMITTERS] pgsql: Report statistics in logical replication workers

2017-04-14 Thread Peter Eisentraut
Report statistics in logical replication workers Author: Stas Kelvich Author: Petr Jelinek Reported-by: Fujii Masao Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/139eb9673cb84c76f493af7e68301ae204199746 Modified Files -- src/backend/postmaster/pgsta

[COMMITTERS] pgsql: Catversion bump

2017-04-14 Thread Peter Eisentraut
Catversion bump for commit 887227a1cc861d87ca0f175cf8bd1447554090eb Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/67c2def11d49de05aacd959ecdffc6736f52efee Modified Files -- src/include/catalog/catversion.h | 2 +- 1 file changed, 1 insertion(+), 1 delet

[COMMITTERS] pgsql: Fix typo in comment

2017-04-14 Thread Peter Eisentraut
Fix typo in comment Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/6e5f9a6dc0a9e417544692db56d2c80a64dd83c7 Modified Files -- doc/src/sgml/ref/drop_foreign_table.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- Sent via pgsql-committers ma

[COMMITTERS] pgsql: Add option to modify sync commit per subscription

2017-04-14 Thread Peter Eisentraut
Add option to modify sync commit per subscription This also changes default behaviour of subscription workers to synchronous_commit = off. Author: Petr Jelinek Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/887227a1cc861d87ca0f175cf8bd1447554090eb Modified Files

[COMMITTERS] pgsql: Remove pstrdup of TextDatumGetCString

2017-04-14 Thread Peter Eisentraut
Remove pstrdup of TextDatumGetCString The result of TextDatumGetCString is already palloc'ed. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/25371a72b95aab43b0a3547ead4d3286c1128351 Modified Files -- src/backend/catalog/pg_subscription.c | 4 ++--