aboutsummaryrefslogtreecommitdiff
path: root/src/backend/regex/regexec.c
diff options
context:
space:
mode:
authorDavid Rowley <drowley@postgresql.org>2021-08-22 23:31:16 +1200
committerDavid Rowley <drowley@postgresql.org>2021-08-22 23:31:16 +1200
commit22c4e88ebff408acd52e212543a77158bde59e69 (patch)
tree41b320c366b66ca4fa724259e79b4ceb2a696d2d /src/backend/regex/regexec.c
parent26ae66090398082c54ce046936fc41633dbfc41e (diff)
downloadpostgresql-22c4e88ebff408acd52e212543a77158bde59e69.tar.gz
postgresql-22c4e88ebff408acd52e212543a77158bde59e69.zip
Allow parallel DISTINCT
We've supported parallel aggregation since e06a38965. At the time, we didn't quite get around to also adding parallel DISTINCT. So, let's do that now. This is implemented by introducing a two-phase DISTINCT. Phase 1 is performed on parallel workers, rows are made distinct there either by hashing or by sort/unique. The results from the parallel workers are combined and the final distinct phase is performed serially to get rid of any duplicate rows that appear due to combining rows for each of the parallel workers. Author: David Rowley Reviewed-by: Zhihong Yu Discussion: https://postgr.es/m/CAApHDvrjRxVKwQN0he79xS+9wyotFXL=RmoWqGGO2N45Farpgw@mail.gmail.com
Diffstat (limited to 'src/backend/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions