diff options
| author | Robert Haas | 2014-02-19 15:06:59 +0000 |
|---|---|---|
| committer | Robert Haas | 2014-02-19 15:06:59 +0000 |
| commit | 694e3d139a9d090c58494428bebfadad216419da (patch) | |
| tree | 80d2d1acb1e2cb584597a6fc4560ebbf97250574 /src/test | |
| parent | 844a28a9dd1a48045ad1db9246da5e2783c9bd40 (diff) | |
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.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/regress/expected/pg_lsn.out | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/regress/expected/pg_lsn.out b/src/test/regress/expected/pg_lsn.out index 8cfe28e4b8a..01d298397bc 100644 --- a/src/test/regress/expected/pg_lsn.out +++ b/src/test/regress/expected/pg_lsn.out @@ -7,23 +7,23 @@ INSERT INTO PG_LSN_TBL VALUES ('0/0'); INSERT INTO PG_LSN_TBL VALUES ('FFFFFFFF/FFFFFFFF'); -- Incorrect input INSERT INTO PG_LSN_TBL VALUES ('G/0'); -ERROR: invalid input syntax for transaction log location: "G/0" +ERROR: invalid input syntax for type pg_lsn: "G/0" LINE 1: INSERT INTO PG_LSN_TBL VALUES ('G/0'); ^ INSERT INTO PG_LSN_TBL VALUES ('-1/0'); -ERROR: invalid input syntax for transaction log location: "-1/0" +ERROR: invalid input syntax for type pg_lsn: "-1/0" LINE 1: INSERT INTO PG_LSN_TBL VALUES ('-1/0'); ^ INSERT INTO PG_LSN_TBL VALUES (' 0/12345678'); -ERROR: invalid input syntax for transaction log location: " 0/12345678" +ERROR: invalid input syntax for type pg_lsn: " 0/12345678" LINE 1: INSERT INTO PG_LSN_TBL VALUES (' 0/12345678'); ^ INSERT INTO PG_LSN_TBL VALUES ('ABCD/'); -ERROR: invalid input syntax for transaction log location: "ABCD/" +ERROR: invalid input syntax for type pg_lsn: "ABCD/" LINE 1: INSERT INTO PG_LSN_TBL VALUES ('ABCD/'); ^ INSERT INTO PG_LSN_TBL VALUES ('/ABCD'); -ERROR: invalid input syntax for transaction log location: "/ABCD" +ERROR: invalid input syntax for type pg_lsn: "/ABCD" LINE 1: INSERT INTO PG_LSN_TBL VALUES ('/ABCD'); ^ DROP TABLE PG_LSN_TBL; |
