[COMMITTERS] pgsql: Don't try to create a temp install without abs_top_builddir.

2015-09-28 Thread Robert Haas
Don't try to create a temp install without abs_top_builddir. Otherwise, we effectively act as if abs_top_builddir were the root directory, which is quite dangerous if the user happens to have permissions to do things there. This can crop up in PGXS builds, for example. Report by Sandro Santilli,

[COMMITTERS] pgsql: Don't try to create a temp install without abs_top_builddir.

2015-09-28 Thread Robert Haas
Don't try to create a temp install without abs_top_builddir. Otherwise, we effectively act as if abs_top_builddir were the root directory, which is quite dangerous if the user happens to have permissions to do things there. This can crop up in PGXS builds, for example. Report by Sandro Santilli,

[COMMITTERS] pgsql: Use LOCKBIT_ON() instead of a bit shift in a few places.

2015-09-28 Thread Robert Haas
Use LOCKBIT_ON() instead of a bit shift in a few places. We do this mostly everywhere, so it seems just as well to do it here, too. Thomas Munro Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/f40792a93ccdc4d01c448121da67693fc2f6297a Modified Files -- s

[COMMITTERS] pgsql: Fix ON CONFLICT DO UPDATE for tables with oids.

2015-09-28 Thread Andres Freund
Fix ON CONFLICT DO UPDATE for tables with oids. When taking the UPDATE path in an INSERT .. ON CONFLICT .. UPDATE tables with oids were not supported. The tuple generated by the update target list was projected without space for an oid - a simple oversight. Reported-By: Peter Geoghegan Author: An

[COMMITTERS] pgsql: Fix ON CONFLICT DO UPDATE for tables with oids.

2015-09-28 Thread Andres Freund
Fix ON CONFLICT DO UPDATE for tables with oids. When taking the UPDATE path in an INSERT .. ON CONFLICT .. UPDATE tables with oids were not supported. The tuple generated by the update target list was projected without space for an oid - a simple oversight. Reported-By: Peter Geoghegan Author: An

[COMMITTERS] pgsql: COPY: use pg_plan_query() instead of planner()

2015-09-28 Thread Alvaro Herrera
COPY: use pg_plan_query() instead of planner() While at it, trim the includes list in copy.c. The planner headers cannot be removed, but there are a few others that are not of any use. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/590e2d12f0e17aed39a64050f2dddc0d9

[COMMITTERS] pgsql: Ensure a few policies remain for pg_upgrade

2015-09-28 Thread Stephen Frost
Ensure a few policies remain for pg_upgrade To make sure that pg_dump/pg_restore function properly with RLS policies, arrange to have a few of them left around at the end of the regression tests. Back-patch to 9.5 where RLS was added. Branch -- master Details --- http://git.postgresql.o

[COMMITTERS] pgsql: Ensure a few policies remain for pg_upgrade

2015-09-28 Thread Stephen Frost
Ensure a few policies remain for pg_upgrade To make sure that pg_dump/pg_restore function properly with RLS policies, arrange to have a few of them left around at the end of the regression tests. Back-patch to 9.5 where RLS was added. Branch -- REL9_5_STABLE Details --- http://git.postg

[COMMITTERS] pgsql: Fix poor errno handling in libpq's version of our custom OpenSSL

2015-09-28 Thread Tom Lane
Fix poor errno handling in libpq's version of our custom OpenSSL BIO. Thom Brown reported that SSL connections didn't seem to work on Windows in 9.5. Asif Naeem figured out that the cause was my_sock_read() looking at "errno" when it needs to look at "SOCK_ERRNO". This mistake was introduced in

[COMMITTERS] pgsql: Fix poor errno handling in libpq's version of our custom OpenSSL

2015-09-28 Thread Tom Lane
Fix poor errno handling in libpq's version of our custom OpenSSL BIO. Thom Brown reported that SSL connections didn't seem to work on Windows in 9.5. Asif Naeem figured out that the cause was my_sock_read() looking at "errno" when it needs to look at "SOCK_ERRNO". This mistake was introduced in

[COMMITTERS] pgsql: Fix "sesssion" typo

2015-09-28 Thread Alvaro Herrera
Fix "sesssion" typo It was introduced alongside replication origins, by commit 5aa2350426c, so backpatch to 9.5. Pointed out by Fujii Masao Branch -- REL9_5_STABLE Details --- http://git.postgresql.org/pg/commitdiff/aea76d128ad85f38aa0f4255fb9d46d95b835755 Modified Files --

[COMMITTERS] pgsql: Fix "sesssion" typo

2015-09-28 Thread Alvaro Herrera
Fix "sesssion" typo It was introduced alongside replication origins, by commit 5aa2350426c, so backpatch to 9.5. Pointed out by Fujii Masao Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/17f5831c8150349d22da2e88820b1be3d734315d Modified Files -- src/ba

[COMMITTERS] pgsql: Fix compiler warning about unused function in non-readline case.

2015-09-28 Thread Andrew Dunstan
Fix compiler warning about unused function in non-readline case. Backpatch to all live branches to keep the code in sync. Branch -- REL9_2_STABLE Details --- http://git.postgresql.org/pg/commitdiff/a959db8acd058a311478d3692ac4ca35b747079c Modified Files -- src/bin/psql/input

[COMMITTERS] pgsql: Fix compiler warning about unused function in non-readline case.

2015-09-28 Thread Andrew Dunstan
Fix compiler warning about unused function in non-readline case. Backpatch to all live branches to keep the code in sync. Branch -- REL9_1_STABLE Details --- http://git.postgresql.org/pg/commitdiff/54499a14fcfc44adfc5354ae801a49c12776073b Modified Files -- src/bin/psql/input

[COMMITTERS] pgsql: Fix compiler warning about unused function in non-readline case.

2015-09-28 Thread Andrew Dunstan
Fix compiler warning about unused function in non-readline case. Backpatch to all live branches to keep the code in sync. Branch -- REL9_0_STABLE Details --- http://git.postgresql.org/pg/commitdiff/47ae6bc5a9fead2c6b52ed861ad84f605b43a858 Modified Files -- src/bin/psql/input

[COMMITTERS] pgsql: Fix compiler warning about unused function in non-readline case.

2015-09-28 Thread Andrew Dunstan
Fix compiler warning about unused function in non-readline case. Backpatch to all live branches to keep the code in sync. Branch -- REL9_4_STABLE Details --- http://git.postgresql.org/pg/commitdiff/84008295068c798b4a8623ed9d7873d277ade25c Modified Files -- src/bin/psql/input

[COMMITTERS] pgsql: Fix compiler warning about unused function in non-readline case.

2015-09-28 Thread Andrew Dunstan
Fix compiler warning about unused function in non-readline case. Backpatch to all live branches to keep the code in sync. Branch -- REL9_3_STABLE Details --- http://git.postgresql.org/pg/commitdiff/729d0056b42a512648e49daa727e5fe77d0cfeeb Modified Files -- src/bin/psql/input

[COMMITTERS] pgsql: Fix compiler warning about unused function in non-readline case.

2015-09-28 Thread Andrew Dunstan
Fix compiler warning about unused function in non-readline case. Backpatch to all live branches to keep the code in sync. Branch -- REL9_5_STABLE Details --- http://git.postgresql.org/pg/commitdiff/c4e6d506c6b028d6ccdac4e2a23b3484fba6c39e Modified Files -- src/bin/psql/input

[COMMITTERS] pgsql: Fix compiler warning about unused function in non-readline case.

2015-09-28 Thread Andrew Dunstan
Fix compiler warning about unused function in non-readline case. Backpatch to all live branches to keep the code in sync. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/8a0aa686f41f68c03683a9e37ba783a20cf53a97 Modified Files -- src/bin/psql/input.c |

[COMMITTERS] pgsql: Fix compiler warning for non-TIOCGWINSZ case

2015-09-28 Thread Andrew Dunstan
Fix compiler warning for non-TIOCGWINSZ case Backpatch to 9.5 where the error was introduced. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/0557dc276f1022965f72dc8bcfc820dfd83a7dc2 Modified Files -- src/bin/psql/print.c |4 ++-- 1 file changed, 2 in

[COMMITTERS] pgsql: Fix compiler warning for non-TIOCGWINSZ case

2015-09-28 Thread Andrew Dunstan
Fix compiler warning for non-TIOCGWINSZ case Backpatch to 9.5 where the error was introduced. Branch -- REL9_5_STABLE Details --- http://git.postgresql.org/pg/commitdiff/60fcee9e5e77dc748a9787fae34328917683b95e Modified Files -- src/bin/psql/print.c |4 ++-- 1 file change

[COMMITTERS] pgsql: Parallel executor support.

2015-09-28 Thread Robert Haas
Parallel executor support. This code provides infrastructure for a parallel leader to start up parallel workers to execute subtrees of the plan tree being executed in the master. User-supplied parameters from ParamListInfo are passed down, but PARAM_EXEC parameters are not. Various other constru