[COMMITTERS] pgsql: Fix broken autoconf test for random number source.

2016-12-11 Thread Heikki Linnakangas
Fix broken autoconf test for random number source. Hopefully this fixes buildfarm member jacana. Discussion: https://www.postgresql.org/message-id/[email protected] Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/ad365b2f91dc57ed1f18

[COMMITTERS] pgsql: Use "%option prefix" to set API names in ecpg's lexer.

2016-12-11 Thread Tom Lane
Use "%option prefix" to set API names in ecpg's lexer. Back-patch commit 92fb64983 into the pre-9.6 branches. Without this, ecpg fails to build with the latest version of flex. It's not unreasonable that people would want to compile our old branches with recent tools. Per report from Дилян Палау

[COMMITTERS] pgsql: Use "%option prefix" to set API names in ecpg's lexer.

2016-12-11 Thread Tom Lane
Use "%option prefix" to set API names in ecpg's lexer. Back-patch commit 92fb64983 into the pre-9.6 branches. Without this, ecpg fails to build with the latest version of flex. It's not unreasonable that people would want to compile our old branches with recent tools. Per report from Дилян Палау

[COMMITTERS] pgsql: Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l st

2016-12-11 Thread Tom Lane
Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l standalone. Back-patch commit 72b1e3a21 into the pre-9.6 branches. As noted in the original commit, this has some extra benefits: we can narrow the scope of the -Wno-error flag that's forced on scan.c. Also, since these grammar and le

[COMMITTERS] pgsql: Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l st

2016-12-11 Thread Tom Lane
Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l standalone. Back-patch commit 72b1e3a21 into the pre-9.6 branches. As noted in the original commit, this has some extra benefits: we can narrow the scope of the -Wno-error flag that's forced on scan.c. Also, since these grammar and le

[COMMITTERS] pgsql: Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l st

2016-12-11 Thread Tom Lane
Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l standalone. Back-patch commit 72b1e3a21 into the pre-9.6 branches. As noted in the original commit, this has some extra benefits: we can narrow the scope of the -Wno-error flag that's forced on scan.c. Also, since these grammar and le

[COMMITTERS] pgsql: Use "%option prefix" to set API names in ecpg's lexer.

2016-12-11 Thread Tom Lane
Use "%option prefix" to set API names in ecpg's lexer. Back-patch commit 92fb64983 into the pre-9.6 branches. Without this, ecpg fails to build with the latest version of flex. It's not unreasonable that people would want to compile our old branches with recent tools. Per report from Дилян Палау

[COMMITTERS] pgsql: Use "%option prefix" to set API names in ecpg's lexer.

2016-12-11 Thread Tom Lane
Use "%option prefix" to set API names in ecpg's lexer. Back-patch commit 92fb64983 into the pre-9.6 branches. Without this, ecpg fails to build with the latest version of flex. It's not unreasonable that people would want to compile our old branches with recent tools. Per report from Дилян Палау

[COMMITTERS] pgsql: Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l st

2016-12-11 Thread Tom Lane
Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l standalone. Back-patch commit 72b1e3a21 into the pre-9.6 branches. As noted in the original commit, this has some extra benefits: we can narrow the scope of the -Wno-error flag that's forced on scan.c. Also, since these grammar and le

[COMMITTERS] pgsql: Use "%option prefix" to set API names in ecpg's lexer.

2016-12-11 Thread Tom Lane
Use "%option prefix" to set API names in ecpg's lexer. Clean up some technical debt left behind by commit 72b1e3a21: instead of quickly hacking the name of base_yylex() with a #define, set it properly with "%option prefix". This causes the names of pgc.l's other exported symbols to change as well

[COMMITTERS] pgsql: Use "%option prefix" to set API names in ecpg's lexer.

2016-12-11 Thread Tom Lane
Use "%option prefix" to set API names in ecpg's lexer. Clean up some technical debt left behind by commit 72b1e3a21: instead of quickly hacking the name of base_yylex() with a #define, set it properly with "%option prefix". This causes the names of pgc.l's other exported symbols to change as well

[COMMITTERS] pgsql: Prevent crash when ts_rewrite() replaces a non-top-level subtree

2016-12-11 Thread Tom Lane
Prevent crash when ts_rewrite() replaces a non-top-level subtree with null. When ts_rewrite()'s replacement argument is an empty tsquery, it's supposed to simplify any operator nodes whose operand(s) become NULL; but it failed to do that reliably, because dropvoidsubtree() only examined the top le

[COMMITTERS] pgsql: Prevent crash when ts_rewrite() replaces a non-top-level subtree

2016-12-11 Thread Tom Lane
Prevent crash when ts_rewrite() replaces a non-top-level subtree with null. When ts_rewrite()'s replacement argument is an empty tsquery, it's supposed to simplify any operator nodes whose operand(s) become NULL; but it failed to do that reliably, because dropvoidsubtree() only examined the top le

[COMMITTERS] pgsql: Prevent crash when ts_rewrite() replaces a non-top-level subtree

2016-12-11 Thread Tom Lane
Prevent crash when ts_rewrite() replaces a non-top-level subtree with null. When ts_rewrite()'s replacement argument is an empty tsquery, it's supposed to simplify any operator nodes whose operand(s) become NULL; but it failed to do that reliably, because dropvoidsubtree() only examined the top le

[COMMITTERS] pgsql: Prevent crash when ts_rewrite() replaces a non-top-level subtree

2016-12-11 Thread Tom Lane
Prevent crash when ts_rewrite() replaces a non-top-level subtree with null. When ts_rewrite()'s replacement argument is an empty tsquery, it's supposed to simplify any operator nodes whose operand(s) become NULL; but it failed to do that reliably, because dropvoidsubtree() only examined the top le

[COMMITTERS] pgsql: Prevent crash when ts_rewrite() replaces a non-top-level subtree

2016-12-11 Thread Tom Lane
Prevent crash when ts_rewrite() replaces a non-top-level subtree with null. When ts_rewrite()'s replacement argument is an empty tsquery, it's supposed to simplify any operator nodes whose operand(s) become NULL; but it failed to do that reliably, because dropvoidsubtree() only examined the top le

[COMMITTERS] pgsql: Prevent crash when ts_rewrite() replaces a non-top-level subtree

2016-12-11 Thread Tom Lane
Prevent crash when ts_rewrite() replaces a non-top-level subtree with null. When ts_rewrite()'s replacement argument is an empty tsquery, it's supposed to simplify any operator nodes whose operand(s) become NULL; but it failed to do that reliably, because dropvoidsubtree() only examined the top le