Further code review for pg_lsn data type.
authorRobert Haas <rhaas@postgresql.org>
Wed, 19 Feb 2014 15:06:59 +0000 (10:06 -0500)
committerRobert Haas <rhaas@postgresql.org>
Wed, 19 Feb 2014 15:06:59 +0000 (10:06 -0500)
commit694e3d139a9d090c58494428bebfadad216419da
tree80d2d1acb1e2cb584597a6fc4560ebbf97250574
parent844a28a9dd1a48045ad1db9246da5e2783c9bd40
Further code review for pg_lsn data type.

Change input function error messages to be more consistent with what is
done elsewhere.  Remove a bunch of redundant type casts, so that the
compiler will warn us if we screw up.  Don't pass LSNs by value on
platforms where a Datum is only 32 bytes, per buildfarm.  Move macros
for packing and unpacking LSNs to pg_lsn.h so that we can include
access/xlogdefs.h, to avoid an unsatisfied dependency on XLogRecPtr.
src/backend/utils/adt/pg_lsn.c
src/include/catalog/pg_type.h
src/include/fmgr.h
src/include/postgres.h
src/include/utils/pg_lsn.h
src/test/regress/expected/pg_lsn.out