Improve regression tests for uuid-ossp.
Tom Lane <tgl@sss.pgh.pa.us>
Improve regression tests for uuid-ossp. On reflection, the timestamp-advances test might fail if we're unlucky enough for the time_mid field to change between two calls, since uuid_cmp is just bytewise comparison and the field ordering has more significant fields later. Build some field extraction functions so we can do a more honest test of that. Also check that the version and reserved fields contain what they should.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/uuid-ossp/expected/uuid_ossp.out | modified | +46 −14 |
| contrib/uuid-ossp/sql/uuid_ossp.sql | modified | +42 −7 |