aboutsummaryrefslogtreecommitdiff
path: root/contrib/jsonb_plpython/jsonb_plpython.c
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2020-01-31 10:25:34 +1300
committerThomas Munro <tmunro@postgresql.org>2020-01-31 10:27:53 +1300
commit1fcf62e0b837c1b814a86f3abf92ad4d36ca30e6 (patch)
treebecb342a8490485fe946c172df4a12fa0a47b466 /contrib/jsonb_plpython/jsonb_plpython.c
parentde0177788bf3f0531af32cd5143a73e1234862d3 (diff)
downloadpostgresql-1fcf62e0b837c1b814a86f3abf92ad4d36ca30e6.tar.gz
postgresql-1fcf62e0b837c1b814a86f3abf92ad4d36ca30e6.zip
Handle lack of DSM slots in parallel btree build.
If no DSM slots are available, a ParallelContext can still be created, but its seg pointer is NULL. Teach parallel btree build to cope with that by falling back to a regular non-parallel build, to avoid crashing with a segmentation fault. Back-patch to 11, where parallel CREATE INDEX landed. Reported-by: Nicola Contu Reviewed-by: Peter Geoghegan Discussion: https://postgr.es/m/CA%2BhUKGJgJEBnkuODBVomyK3MWFvDBbMVj%3Dgdt6DnRPU-5sQ6UQ%40mail.gmail.com
Diffstat (limited to 'contrib/jsonb_plpython/jsonb_plpython.c')
0 files changed, 0 insertions, 0 deletions