postgresql/contrib/ltree
Tom Lane 66c029c842 Fix volatility markings of some contrib I/O functions.
In general, datatype I/O functions are supposed to be immutable or at
worst stable.  Some contrib I/O functions were, through oversight, not
marked with any volatility property at all, which made them VOLATILE.
Since (most of) these functions actually behave immutably, the erroneous
marking isn't terribly harmful; but it can be user-visible in certain
circumstances, as per a recent bug report from Joe Van Dyk in which a
cast to text was disallowed in an expression index definition.

To fix, just adjust the declarations in the extension SQL scripts.  If we
were being very fussy about this, we'd bump the extension version numbers,
but that seems like more trouble (for both developers and users) than the
problem is worth.

A fly in the ointment is that chkpass_in actually is volatile, because
of its use of random() to generate a fresh salt when presented with a
not-yet-encrypted password.  This is bad because of the general assumption
that I/O functions aren't volatile: the consequence is that records or
arrays containing chkpass elements may have input behavior a bit different
from a bare chkpass column.  But there seems no way to fix this without
breaking existing usage patterns for chkpass, and the consequences of the
inconsistency don't seem bad enough to justify that.  So for the moment,
just document it in a comment.

Since we're not bumping version numbers, there seems no harm in
back-patching these fixes; at least future installations will get the
functions marked correctly.
2014-11-05 11:34:11 -05:00
..
data
expected
sql
_ltree_gist.c
_ltree_op.c
.gitignore
crc32.c Switch to CRC-32C in WAL and other places. 2014-11-04 11:39:48 +02:00
crc32.h
lquery_op.c
ltree_gist.c
ltree_io.c
ltree_op.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
ltree--1.0.sql Fix volatility markings of some contrib I/O functions. 2014-11-05 11:34:11 -05:00
ltree--unpackaged--1.0.sql Fix typos in some error messages thrown by extension scripts when fed to psql. 2014-08-25 18:30:37 +02:00
ltree.control
ltree.h
ltreetest.sql
ltxtquery_io.c
ltxtquery_op.c
Makefile Add file version information to most installed Windows binaries. 2014-07-14 14:07:52 -04:00