]> granicus.if.org Git - postgresql/commit
This patch for Versions 1 and 2 corrects the following bug:
authorMarc G. Fournier <scrappy@hub.org>
Sat, 24 Aug 1996 20:56:42 +0000 (20:56 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Sat, 24 Aug 1996 20:56:42 +0000 (20:56 +0000)
commit27f56dd41e0d3467c907ab1e51f173c9692d61d5
tree73b7d21a06a6f18dd3f3608703f1d7da8b7f12a4
parentd390886c1bee2537203bd66d6be0eabfa48e4a51
This patch for Versions 1 and 2 corrects the following bug:

In a catalog class that has a "name" type attribute, UPDATEing of an
instance of that class may destroy all of the attributes of that
instance that are stored as or after the "name" attribute.

This is caused by the alignment value of the "name" type being set to
"double" in Class pg_type, but "integer" in Class pg_attribute.
Postgres constructs a tuple using double alignment, but interprets it
using integer alignment.

The fix is to change the alignment to integer in pg_type.

Note that this corrects the problem for new Postgres systems.  Existing
databases already contain the error and it can't easily be repaired because
this very bug prevents updating the class that contains it.

--
Bryan Henderson                                    Phone 408-227-6803
San Jose, California
src/backend/catalog/pg_attribute.h