postgresql/src/backend/utils
Tom Lane f867339c01 Make our parsing of INTERVAL literals spec-compliant (or at least a heck of
a lot closer than it was before).  To do this, tweak coerce_type() to pass
through the typmod information when invoking interval_in() on an UNKNOWN
constant; then fix DecodeInterval to pay attention to the typmod when deciding
how to interpret a units-less integer value.  I changed one or two other
details as well.  I believe the code now reacts as expected by spec for all
the literal syntaxes that are specifically enumerated in the spec.  There
are corner cases involving strings that don't exactly match the set of fields
called out by the typmod, for which we might want to tweak the behavior some
more; but I think this is an area of user friendliness rather than spec
compliance.  There remain some non-compliant details about the SQL syntax
(as opposed to what's inside the literal string); but at least we'll throw
error rather than silently doing the wrong thing in those cases.
2008-09-10 18:29:41 +00:00
..
adt Make our parsing of INTERVAL literals spec-compliant (or at least a heck of 2008-09-10 18:29:41 +00:00
cache Improve the plan cache invalidation mechanism to make it invalidate plans 2008-09-09 18:58:09 +00:00
error Add a bunch of new error location reports to parse-analysis error messages. 2008-09-01 20:42:46 +00:00
fmgr If a loadable module has wrong values in its magic block, spell out 2008-09-03 22:34:50 +00:00
hash Update URL to Ross William's paper. 2008-08-25 17:37:40 +00:00
init
mb Suppress gcc warning about possibly-uninitialized variable. It's not 2008-08-29 16:34:14 +00:00
misc Add "source file" and "source line" information to each GUC variable. 2008-09-10 18:09:20 +00:00
mmgr
resowner
sort Add a few more DTrace probes to the backend. 2008-08-01 13:16:09 +00:00
time HeapTupleHeaderAdjustCmax made the incorrect assumption that the raw 2008-09-01 18:52:45 +00:00
.cvsignore
Gen_dummy_probes.sed Add a few more DTrace probes to the backend. 2008-08-01 13:16:09 +00:00
Gen_fmgrtab.pl
Gen_fmgrtab.sh
Makefile Add a few more DTrace probes to the backend. 2008-08-01 13:16:09 +00:00
probes.d Add a few more DTrace probes to the backend. 2008-08-01 13:16:09 +00:00