postgresql/src/backend
Tom Lane 0ce7676aa0 Make xpath() do something useful with XPath expressions that return scalars.
Previously, xpath() simply returned an empty array if the expression did
not yield a node set.  This is useless for expressions that return scalars,
such as one with name() at the top level.  Arrange to return the scalar
value as a single-element xml array, instead.  (String values will be
suitably escaped.)

This change will also cause xpath_exists() to return true, not false,
for such expressions.

Florian Pflug, reviewed by Radoslaw Smogura
2011-07-21 11:32:46 -04:00
..
access Remove O(N^2) performance issue with multiple SAVEPOINTs. 2011-07-19 17:21:24 +01:00
bootstrap Avoid index rebuild for no-rewrite ALTER TABLE .. ALTER TYPE. 2011-07-18 11:04:43 -04:00
catalog Support SECURITY LABEL on databases, tablespaces, and roles. 2011-07-20 13:18:24 -04:00
commands Support SECURITY LABEL on databases, tablespaces, and roles. 2011-07-20 13:18:24 -04:00
executor Move Trigger and TriggerDesc structs out of rel.h into a new reltrigger.h 2011-07-04 14:35:58 -04:00
foreign Clean up most -Wunused-but-set-variable warnings from gcc 4.6 2011-04-11 22:28:45 +03:00
lib Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
libpq Replace errdetail("%s", ...) with errdetail_internal("%s", ...). 2011-07-16 14:22:18 -04:00
main Pgindent run before 9.1 beta2. 2011-06-09 14:32:50 -04:00
nodes Avoid index rebuild for no-rewrite ALTER TABLE .. ALTER TYPE. 2011-07-18 11:04:43 -04:00
optimizer Improve make_subplanTargetList to avoid including Vars unnecessarily. 2011-07-16 16:46:55 -04:00
parser Support SECURITY LABEL on databases, tablespaces, and roles. 2011-07-20 13:18:24 -04:00
po Fixed string in German translation that causes segfault. 2011-06-20 13:53:15 +02:00
port Introduce a pipe between postmaster and each backend, which can be used to 2011-07-08 18:44:07 +03:00
postmaster Cascading replication feature for streaming log-based replication. 2011-07-19 03:40:03 +01:00
regex Pgindent run before 9.1 beta2. 2011-06-09 14:32:50 -04:00
replication Cascading replication feature for streaming log-based replication. 2011-07-19 03:40:03 +01:00
rewrite Try to acquire relation locks in RangeVarGetRelid. 2011-07-08 22:19:30 -04:00
snowball Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
storage Some refinement for the "fast path" lock patch. 2011-07-19 12:10:15 -04:00
tcop Avoid index rebuild for no-rewrite ALTER TABLE .. ALTER TYPE. 2011-07-18 11:04:43 -04:00
tsearch Pgindent run before 9.1 beta2. 2011-06-09 14:32:50 -04:00
utils Make xpath() do something useful with XPath expressions that return scalars. 2011-07-21 11:32:46 -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