Thread: pgsql: Rewrite uuid input and output routines to avoid dependency on the

pgsql: Rewrite uuid input and output routines to avoid dependency on the

From
neilc@postgresql.org (Neil Conway)
Date:
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)

neilc@postgresql.org (Neil Conway) writes:
> Rewrite uuid input and output routines to avoid dependency on the
> nonportable "hh" sprintf(3) length modifier.

Works for me now.  Thanks.

            regards, tom lane