postgresql/src/backend
Tom Lane d5aa7a9fe6 Avoid unnecessary snapshot-acquisitions in BuildCachedPlan.
I had copied-and-pasted a claim that we couldn't reach this point when
dealing with utility statements, but that was a leftover from when the
caller was required to supply a plan to start with.  We now will go
through here at least once when handling a utility statement, so it
seems worth a check to see whether a snapshot is actually needed.
(Note that analyze_requires_snapshot is quite a cheap test.)

Per suggestion from Yamamoto Takashi.  I don't think I believe that this
resolves his reported assertion failure; but it's worth changing anyway,
just to save a cycle or two.
2011-09-25 17:34:20 -04:00
..
access Avoid unnecessary page-level SSI lock check in heap_insert(). 2011-09-16 14:47:20 -04:00
bootstrap Simplify handling of the timezone GUC by making initdb choose the default. 2011-09-09 17:59:11 -04:00
catalog Fix another bit of unlogged-table-induced breakage. 2011-09-21 10:48:31 -04:00
commands Make EXPLAIN ANALYZE report the numbers of rows rejected by filter steps. 2011-09-22 11:30:11 -04:00
executor Make EXPLAIN ANALYZE report the numbers of rows rejected by filter steps. 2011-09-22 11:30:11 -04:00
foreign deflist_to_tuplestore dumped core on an option with no value. 2011-09-13 11:36:49 -04:00
lib Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
libpq Remove many -Wcast-qual warnings 2011-09-11 21:54:32 +03:00
main Pgindent run before 9.1 beta2. 2011-06-09 14:32:50 -04:00
nodes Remove many -Wcast-qual warnings 2011-09-11 21:54:32 +03:00
optimizer Recognize self-contradictory restriction clauses for non-table relations. 2011-09-24 19:33:16 -04:00
parser Move Timestamp/Interval typedefs and basic macros into datatype/timestamp.h. 2011-09-09 13:23:41 -04:00
po Translation updates 2011-08-17 14:07:46 +03:00
port Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
postmaster Remove debug logging for pgstat wait timeout. 2011-09-16 18:25:27 -04:00
regex Add markers for skips. 2011-08-26 18:15:13 -04:00
replication Split walsender.h in public/private headers 2011-09-13 21:42:49 -03:00
rewrite Rearrange planner to save the whole PlannerInfo (subroot) for a subquery. 2011-09-03 15:36:24 -04:00
snowball Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
storage Memory barrier support for PostgreSQL. 2011-09-23 17:52:43 -04:00
tcop Redesign the plancache mechanism for more flexibility and efficiency. 2011-09-16 00:43:52 -04:00
tsearch Remove many -Wcast-qual warnings 2011-09-11 21:54:32 +03:00
utils Avoid unnecessary snapshot-acquisitions in BuildCachedPlan. 2011-09-25 17:34:20 -04:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
Makefile Fix symlink for errcodes.h so it works in VPATH builds from tarballs. 2011-06-22 13:08:08 -04:00
common.mk Workaround for recursive make breakage 2011-01-13 09:32:06 +02:00
nls.mk Add the possibility to pass --flag arguments to xgettext calls 2011-06-27 00:37:21 +03:00