postgresql/contrib
Tom Lane c8e81afc60 Convert contrib/seg's bool-returning SQL functions to V1 call convention.
It appears that we can no longer get away with using V0 call convention
for bool-returning functions in newer versions of MSVC.  The compiler
seems to generate code that doesn't clear the higher-order bits of the
result register, causing the bool result Datum to often read as "true"
when "false" was intended.  This is not very surprising, since the
function thinks it's returning a bool-width result but fmgr_oldstyle
assumes that V0 functions return "char *"; what's surprising is that
that hack worked for so long on so many platforms.

The only functions of this description in core+contrib are in contrib/seg,
which we'd intentionally left mostly in V0 style to serve as a warning
canary if V0 call convention breaks.  We could imagine hacking things
so that they're still V0 (we'd have to redeclare the bool-returning
functions as returning some suitably wide integer type, like size_t,
at the C level).  But on the whole it seems better to convert 'em to V1.
We can still leave the pointer- and int-returning functions in V0 style,
so that the test coverage isn't gone entirely.

Back-patch to 9.5, since our intention is to support VS2015 in 9.5
and later.  There's no SQL-level change in the functions' behavior
so back-patching should be safe enough.

Discussion: <22094.1461273324@sss.pgh.pa.us>

Michael Paquier, adjusted some by me
2016-04-22 11:54:23 -04:00
..
adminpack
auth_delay
auto_explain Rename auto_explain.sample_ratio to sample_rate 2016-03-13 13:18:03 +01:00
bloom PGDLLIMPORT-ify old_snapshot_threshold. 2016-04-21 14:33:34 -04:00
btree_gin
btree_gist
chkpass
citext
cube
dblink Revert CREATE INDEX ... INCLUDING ... 2016-04-08 21:52:13 +03:00
dict_int
dict_xsyn
earthdistance
file_fdw Don't require a user mapping for FDWs to work. 2016-03-28 21:50:28 -04:00
fuzzystrmatch
hstore
hstore_plperl
hstore_plpython
intagg
intarray
isn
lo
ltree ltree: Zero padding bytes when allocating memory for externally visible data. 2016-03-08 14:59:29 -08:00
ltree_plpython
oid2name
pageinspect Revert no-op changes to BufferGetPage() 2016-04-20 08:31:19 -05:00
passwordcheck
pg_buffercache Allow Pin/UnpinBuffer to operate in a lockfree manner. 2016-04-10 20:12:32 -07:00
pg_freespacemap
pg_prewarm
pg_standby
pg_stat_statements Widen query numbers-of-tuples-processed counters to uint64. 2016-03-12 16:05:29 -05:00
pg_trgm Various minor corrections of and improvements to comments. 2016-03-18 09:38:59 -04:00
pg_visibility Revert no-op changes to BufferGetPage() 2016-04-20 08:31:19 -05:00
pgcrypto Fix typos. 2016-03-15 18:06:11 -04:00
pgrowlocks
pgstattuple Revert no-op changes to BufferGetPage() 2016-04-20 08:31:19 -05:00
postgres_fdw Allow queries submitted by postgres_fdw to be canceled. 2016-04-21 10:49:09 -04:00
seg Convert contrib/seg's bool-returning SQL functions to V1 call convention. 2016-04-22 11:54:23 -04:00
sepgsql Don't use !! but != 0/NULL to force boolean evaluation. 2016-03-27 18:10:19 +02:00
spi Widen query numbers-of-tuples-processed counters to uint64. 2016-03-12 16:05:29 -05:00
sslinfo
start-scripts
tablefunc Widen query numbers-of-tuples-processed counters to uint64. 2016-03-12 16:05:29 -05:00
tcn Revert CREATE INDEX ... INCLUDING ... 2016-04-08 21:52:13 +03:00
test_decoding Fix core dump in ReorderBufferRestoreChange on alignment-picky platforms. 2016-04-14 19:42:21 -04:00
tsearch2 Fix output of regression test of contrib/tsearch2 2016-04-08 20:37:12 +03:00
tsm_system_rows
tsm_system_time
unaccent fix typo in comment 2016-03-16 17:18:14 +03:00
uuid-ossp
vacuumlo
xml2 Widen query numbers-of-tuples-processed counters to uint64. 2016-03-12 16:05:29 -05:00
contrib-global.mk Respect TEMP_CONFIG when pg_regress_check and friends are called 2016-02-27 12:28:21 -05:00
Makefile Bloom index contrib module 2016-04-01 16:42:24 +03:00
README

The PostgreSQL contrib tree
---------------------------

This subtree contains porting tools, analysis utilities, and plug-in
features that are not part of the core PostgreSQL system, mainly
because they address a limited audience or are too experimental to be
part of the main source tree.  This does not preclude their
usefulness.

User documentation for each module appears in the main SGML
documentation.

When building from the source distribution, these modules are not
built automatically, unless you build the "world" target.  You can
also build and install them all by running "make all" and "make
install" in this directory; or to build and install just one selected
module, do the same in that module's subdirectory.

Some directories supply new user-defined functions, operators, or
types.  To make use of one of these modules, after you have installed
the code you need to register the new SQL objects in the database
system by executing a CREATE EXTENSION command.  In a fresh database,
you can simply do

    CREATE EXTENSION module_name;

See the PostgreSQL documentation for more information about this
procedure.