aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/formatting.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2014-09-12 16:11:58 -0400
committerRobert Haas <rhaas@postgresql.org>2014-09-12 16:18:09 -0400
commit8cce08f168481c5fc5be4e7e29b968e314f1b41e (patch)
tree6598c88cf0b4d3e69f9709efea37af14df93b81f /src/backend/utils/adt/formatting.c
parent4ad2a548050fdde07fed93e6c60a4d0a7eba0622 (diff)
downloadpostgresql-8cce08f168481c5fc5be4e7e29b968e314f1b41e.tar.gz
postgresql-8cce08f168481c5fc5be4e7e29b968e314f1b41e.zip
Change NTUP_PER_BUCKET to 1 to improve hash join lookup speed.
Since this makes the bucket headers use ~10x as much memory, properly account for that memory when we figure out whether everything fits in work_mem. This might result in some cases that previously used only a single batch getting split into multiple batches, but it's unclear as yet whether we need defenses against that case, and if so, what the shape of those defenses should be. It's worth noting that even in these edge cases, users should still be no worse off than they would have been last week, because commit 45f6240a8fa9d35548eb2ef23dba2c11540aa02a saved a big pile of memory on exactly the same workloads. Tomas Vondra, reviewed and somewhat revised by me.
Diffstat (limited to 'src/backend/utils/adt/formatting.c')
0 files changed, 0 insertions, 0 deletions