diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2011-05-21 14:47:19 -0400 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2011-05-21 14:47:19 -0400 |
commit | 30e98a7e6e4869a7d6b3748ac9770bb8d69a8b26 (patch) | |
tree | 804de2246baa5d034a571ecae762e7379f0de3a5 /src/backend/utils/adt/arrayfuncs.c | |
parent | 0319da638f337cae66a4649581dc1f33d5079e1a (diff) | |
download | postgresql-30e98a7e6e4869a7d6b3748ac9770bb8d69a8b26.tar.gz postgresql-30e98a7e6e4869a7d6b3748ac9770bb8d69a8b26.zip |
Pull up isReset flag from AllocSetContext to MemoryContext struct. This
avoids the overhead of one function call when calling MemoryContextReset(),
and it seems like the isReset optimization would be applicable to any new
memory context we might invent in the future anyway.
This buys back the overhead I just added in previous patch to always call
MemoryContextReset() in ExecScan, even when there's no quals or projections.
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions