postgresql/src/backend
Tomas Vondra 3824ca30d1 Fix pg_mcv_list deserialization
The memcpy() was copying type OIDs in the wrong direction, so the
deserialized MCV list always had them as 0. This is mostly harmless
except when printing the data in pg_mcv_list_items(), in which case
it reported

    ERROR:  cache lookup failed for type 0

Also added a simple regression test for pg_mcv_list_items() function,
printing a single-item MCV list.

Reported-By: Dean Rasheed
Discussion: https://postgr.es/m/CAEZATCX6T0iDTTZrqyec4Cd6b4yuL7euu4=rQRXaVBAVrUi1Cg@mail.gmail.com
2019-04-16 00:01:39 +02:00
..
access Fix division by zero in _bt_vacuum_needs_cleanup() 2019-04-15 20:20:43 +03:00
bootstrap tableam: relation creation, VACUUM FULL/CLUSTER, SET TABLESPACE. 2019-03-28 20:01:43 -07:00
catalog Show shared object statistics in pg_stat_database 2019-04-12 14:04:50 +02:00
commands Fix more strcmp() calls using boolean-like comparisons for result checks 2019-04-12 10:16:49 +09:00
executor Fix thinko in ExecCleanupTupleRouting(). 2019-04-15 19:01:09 +09:00
foreign Update copyright for 2019 2019-01-02 12:44:25 -05:00
jit Renaming for new subscripting mechanism 2019-02-01 12:50:32 -03:00
lib Fix example in comment. 2019-04-09 08:33:42 +03:00
libpq Add support TCP user timeout in libpq and the backend server 2019-04-06 15:23:37 +09:00
main Replace @postgresql.org with @lists.postgresql.org for mailinglists 2019-01-19 19:06:35 +01:00
nodes Use Append rather than MergeAppend for scanning ordered partitions. 2019-04-05 19:20:43 -04:00
optimizer Prevent inlining of multiply-referenced CTEs with outer recursive refs. 2019-04-09 15:47:35 -04:00
parser Fix backwards test in operator_precedence_warning logic. 2019-04-10 19:02:21 -04:00
partitioning Fix failure with textual partition hash keys. 2019-04-15 16:47:09 -04:00
po Translation updates 2018-06-25 12:37:18 +02:00
port Consistently test for in-use shared memory. 2019-04-12 22:36:38 -07:00
postmaster Consistently test for in-use shared memory. 2019-04-12 22:36:38 -07:00
regex Collations with nondeterministic comparison 2019-03-22 12:12:43 +01:00
replication Fix SHOW ALL command for non-superusers with replication connection 2019-04-15 12:34:32 +09:00
rewrite Perform RLS subquery checks as the right user when going via a view. 2019-04-02 08:13:59 +01:00
snowball Update copyright for 2019 2019-01-02 12:44:25 -05:00
statistics Fix pg_mcv_list deserialization 2019-04-16 00:01:39 +02:00
storage Consistently test for in-use shared memory. 2019-04-12 22:36:38 -07:00
tcop Define WIN32_STACK_RLIMIT throughout win32 and cygwin builds. 2019-04-09 08:25:39 -07:00
tsearch Fix more strcmp() calls using boolean-like comparisons for result checks 2019-04-12 10:16:49 +09:00
utils Unbreak index optimization for LIKE on bytea 2019-04-15 09:29:17 +02:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Get rid of jsonpath_gram.h and jsonpath_scanner.h 2019-03-20 11:13:34 +03:00
nls.mk Translation updates 2018-06-25 12:37:18 +02:00