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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-committers by date

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