diff options
author | Andres Freund <andres@anarazel.de> | 2017-08-22 16:05:48 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2017-08-22 16:11:54 -0700 |
commit | 35ea75632a56ca8ef22aa8fed03b9dabb9c8c575 (patch) | |
tree | 630833921351b6f89f7be11372a2ac8bcba332a8 /src/backend/parser/parse_oper.c | |
parent | 0052a0243d9c979a06ef273af965508103c456e0 (diff) | |
download | postgresql-35ea75632a56ca8ef22aa8fed03b9dabb9c8c575.tar.gz postgresql-35ea75632a56ca8ef22aa8fed03b9dabb9c8c575.zip |
Refactor typcache.c's record typmod hash table.
Previously, tuple descriptors were stored in chains keyed by a fixed size
array of OIDs. That meant there were effectively two levels of collision
chain -- one inside and one outside the hash table. Instead, let dynahash.c
look after conflicts for us by supplying a proper hash and equal function
pair.
This is a nice cleanup on its own, but also simplifies followup
changes allowing blessed TupleDescs to be shared between backends
participating in parallel query.
Author: Thomas Munro
Reviewed-By: Andres Freund
Discussion: https://postgr.es/m/CAEepm%3D34GVhOL%2BarUx56yx7OPk7%3DqpGsv3CpO54feqjAwQKm5g%40mail.gmail.com
Diffstat (limited to 'src/backend/parser/parse_oper.c')
0 files changed, 0 insertions, 0 deletions