postgresql/src/backend
Noah Misch 3a0d473192 Use wrappers of PG_DETOAST_DATUM_PACKED() more.
This makes almost all core code follow the policy introduced in the
previous commit.  Specific decisions:

- Text search support functions with char* and length arguments, such as
  prsstart and lexize, may receive unaligned strings.  I doubt
  maintainers of non-core text search code will notice.

- Use plain VARDATA() on values detoasted or synthesized earlier in the
  same function.  Use VARDATA_ANY() on varlenas sourced outside the
  function, even if they happen to always have four-byte headers.  As an
  exception, retain the universal practice of using VARDATA() on return
  values of SendFunctionCall().

- Retain PG_GETARG_BYTEA_P() in pageinspect.  (Page images are too large
  for a one-byte header, so this misses no optimization.)  Sites that do
  not call get_page_from_raw() typically need the four-byte alignment.

- For now, do not change btree_gist.  Its use of four-byte headers in
  memory is partly entangled with storage of 4-byte headers inside
  GBT_VARKEY, on disk.

- For now, do not change gtrgm_consistent() or gtrgm_distance().  They
  incorporate the varlena header into a cache, and there are multiple
  credible implementation strategies to consider.
2017-03-12 19:35:34 -04:00
..
access Use wrappers of PG_DETOAST_DATUM_PACKED() more. 2017-03-12 19:35:34 -04:00
bootstrap Move atooid() definition to a central place 2017-03-01 11:55:28 -05:00
catalog Change the relkind for partitioned tables from 'P' to 'p'. 2017-03-10 13:15:47 -05:00
commands Use wrappers of PG_DETOAST_DATUM_PACKED() more. 2017-03-12 19:35:34 -04:00
executor Use wrappers of PG_DETOAST_DATUM_PACKED() more. 2017-03-12 19:35:34 -04:00
foreign Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
lib Fix overflow check in StringInfo; add missing casts 2017-01-10 11:41:13 -03:00
libpq Use wrappers of PG_DETOAST_DATUM_PACKED() more. 2017-03-12 19:35:34 -04:00
main Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
nodes Fix bug in parallel tidbitmap iteration. 2017-03-09 12:13:48 -05:00
optimizer Fix a couple of planner bugs in Gather Merge. 2017-03-09 12:06:49 -05:00
parser Support XMLTABLE query expression 2017-03-08 12:40:26 -03:00
po Translation updates 2016-08-08 11:08:00 -04:00
port Remove useless duplicate inclusions of system header files. 2017-02-25 16:12:55 -05:00
postmaster Reduce log verbosity of startup/shutdown for launcher subprocesses. 2017-03-10 15:18:38 -05:00
regex Document intentional violations of header inclusion policy. 2017-03-08 17:01:13 -05:00
replication Use wrappers of PG_DETOAST_DATUM_PACKED() more. 2017-03-12 19:35:34 -04:00
rewrite Support XMLTABLE query expression 2017-03-08 12:40:26 -03:00
snowball Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
storage Revert "Use group updates when setting transaction status in clog." 2017-03-10 14:49:56 -05:00
tcop Disallow CREATE/DROP SUBSCRIPTION in transaction block 2017-03-03 23:29:13 -05:00
tsearch Use wrappers of PG_DETOAST_DATUM_PACKED() more. 2017-03-12 19:35:34 -04:00
utils Use wrappers of PG_DETOAST_DATUM_PACKED() more. 2017-03-12 19:35:34 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Fix parallel make issue with new fmgrprotos.h 2017-01-23 15:36:27 -05:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
nls.mk Remove trailing slashes from directories in find command 2015-09-18 22:06:54 -04:00