[COMMITTERS] pgsql: Include policies based on ACLs needed

2015-09-30 Thread Stephen Frost
Include policies based on ACLs needed When considering which policies should be included, rather than look at individual bits of the query (eg: if a RETURNING clause exists, or if a WHERE clause exists which is referencing the table, or if it's a FOR SHARE/UPDATE query), consider any case where we

[COMMITTERS] pgsql: Include policies based on ACLs needed

2015-09-30 Thread Stephen Frost
Include policies based on ACLs needed When considering which policies should be included, rather than look at individual bits of the query (eg: if a RETURNING clause exists, or if a WHERE clause exists which is referencing the table, or if it's a FOR SHARE/UPDATE query), consider any case where we

[COMMITTERS] pgsql: Don't dump core when destroying an unused ParallelContext.

2015-09-30 Thread Robert Haas
Don't dump core when destroying an unused ParallelContext. If a transaction or subtransaction creates a ParallelContext but ends without calling InitializeParallelDSM, the previous code would seg fault. Fix that. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/227d5

[COMMITTERS] pgsql: Don't dump core when destroying an unused ParallelContext.

2015-09-30 Thread Robert Haas
Don't dump core when destroying an unused ParallelContext. If a transaction or subtransaction creates a ParallelContext but ends without calling InitializeParallelDSM, the previous code would seg fault. Fix that. Branch -- REL9_5_STABLE Details --- http://git.postgresql.org/pg/commitdif

[COMMITTERS] pgsql: Add a Gather executor node.

2015-09-30 Thread Robert Haas
Add a Gather executor node. A Gather executor node runs any number of copies of a plan in an equal number of workers and merges all of the results into a single tuple stream. It can also run the plan itself, if the workers are unavailable or haven't started up yet. It is intended to work with th

[COMMITTERS] pgsql: Improve LISTEN startup time when there are many unread notificat

2015-09-30 Thread Tom Lane
Improve LISTEN startup time when there are many unread notifications. If some existing listener is far behind, incoming new listener sessions would start from that session's read pointer and then need to advance over many already-committed notification messages, which they have no interest in. Th

[COMMITTERS] pgsql: Improve LISTEN startup time when there are many unread notificat

2015-09-30 Thread Tom Lane
Improve LISTEN startup time when there are many unread notifications. If some existing listener is far behind, incoming new listener sessions would start from that session's read pointer and then need to advance over many already-committed notification messages, which they have no interest in. Th

[COMMITTERS] pgsql: Improve LISTEN startup time when there are many unread notificat

2015-09-30 Thread Tom Lane
Improve LISTEN startup time when there are many unread notifications. If some existing listener is far behind, incoming new listener sessions would start from that session's read pointer and then need to advance over many already-committed notification messages, which they have no interest in. Th

[COMMITTERS] pgsql: Improve LISTEN startup time when there are many unread notificat

2015-09-30 Thread Tom Lane
Improve LISTEN startup time when there are many unread notifications. If some existing listener is far behind, incoming new listener sessions would start from that session's read pointer and then need to advance over many already-committed notification messages, which they have no interest in. Th

[COMMITTERS] pgsql: Improve LISTEN startup time when there are many unread notificat

2015-09-30 Thread Tom Lane
Improve LISTEN startup time when there are many unread notifications. If some existing listener is far behind, incoming new listener sessions would start from that session's read pointer and then need to advance over many already-committed notification messages, which they have no interest in. Th

[COMMITTERS] pgsql: Improve LISTEN startup time when there are many unread notificat

2015-09-30 Thread Tom Lane
Improve LISTEN startup time when there are many unread notifications. If some existing listener is far behind, incoming new listener sessions would start from that session's read pointer and then need to advance over many already-committed notification messages, which they have no interest in. Th

[COMMITTERS] pgsql: Fix errors in commit a04bb65f70dafdf462e0478ad19e6de56df89bfc.

2015-09-30 Thread Tom Lane
Fix errors in commit a04bb65f70dafdf462e0478ad19e6de56df89bfc. Not a lot of commentary needed here really. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/5884b92a841d83ceadb986843892d57c68ea32cd Modified Files -- src/backend/commands/async.c |

[COMMITTERS] pgsql: Improve LISTEN startup time when there are many unread notificat

2015-09-30 Thread Tom Lane
Improve LISTEN startup time when there are many unread notifications. If some existing listener is far behind, incoming new listener sessions would start from that session's read pointer and then need to advance over many already-committed notification messages, which they have no interest in. Th