pgsql: Rewrite uuid input and output routines to avoid dependency on the - Mailing list pgsql-committers

From neilc@postgresql.org (Neil Conway)
Subject pgsql: Rewrite uuid input and output routines to avoid dependency on the
Date
Msg-id 20070131193355.01F159FAD5A@postgresql.org
Whole thread Raw
Responses Re: pgsql: Rewrite uuid input and output routines to avoid dependency on the  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-committers
Log Message:
-----------
Rewrite uuid input and output routines to avoid dependency on the
nonportable "hh" sprintf(3) length modifier. Instead, do the parsing
and output by hand. The code to do this isn't ideal, but this is
an interim measure anyway: the uuid type should probably use the
in-memory struct layout specified by RFC 4122. For now, this patch
should hopefully rectify the buildfarm failures for the uuid test.

Along the way, re-add pg_cast entries for uuid <-> varchar, which
I mistakenly removed earlier, and bump the catversion.

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        uuid.c (r1.2 -> r1.3)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/uuid.c.diff?r1=1.2&r2=1.3)
    pgsql/src/include/catalog:
        catversion.h (r1.377 -> r1.378)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/catalog/catversion.h.diff?r1=1.377&r2=1.378)
        pg_cast.h (r1.29 -> r1.30)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/catalog/pg_cast.h.diff?r1=1.29&r2=1.30)
    pgsql/src/test/regress/expected:
        uuid.out (r1.1 -> r1.2)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/uuid.out.diff?r1=1.1&r2=1.2)
    pgsql/src/test/regress/sql:
        uuid.sql (r1.1 -> r1.2)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/uuid.sql.diff?r1=1.1&r2=1.2)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix initdb to not generate misleading error messages when
Next
From: neilc@postgresql.org (Neil Conway)
Date:
Subject: pgsql: Add missing Makefile dependencies for the "bigtest" and