Skip site navigation (1) Skip section navigation (2)

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

From: neilc(at)postgresql(dot)org (Neil Conway)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Rewrite uuid input and output routines to avoid dependency on the
Date: 2007-01-31 19:33:54
Message-ID: 20070131193355.01F159FAD5A@postgresql.org (view raw or flat)
Thread:
Lists: 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)

Responses

pgsql-committers by date

Next:From: Neil ConwayDate: 2007-01-31 19:38:50
Subject: pgsql: Add missing Makefile dependencies for the "bigtest" and
Previous:From: Tom LaneDate: 2007-01-31 18:52:50
Subject: pgsql: Fix initdb to not generate misleading error messages when

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group