diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-08-28 20:18:29 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-08-28 20:18:29 +0000 |
commit | b60acaf568bec8afd72a37dc0a486e17d4c21ba3 (patch) | |
tree | 1c2872108f041b947d0b50740f23007ab5900cb6 /src/backend/commands/tablecmds.c | |
parent | 1923816c37037bbbf526180306c1c2d8c61bd081 (diff) |
The following small patch provides a couple of minor updates (against
CVS HEAD):
Amended "strings" regression test. TOAST tests now insert two values
with storage set to "external", to exercise properly the TOAST slice
routines which fetch only a subset of the chunks.
Changed now-misleading comment on AlterTableCreateToastTable in
tablecmds.c, because both columns of the index on a toast table are now
used.
John Gray
Diffstat (limited to 'src/backend/commands/tablecmds.c')
-rw-r--r-- | src/backend/commands/tablecmds.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index c4e4affa119..81f1c4cfb72 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.34 2002/08/27 03:56:34 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.35 2002/08/28 20:18:29 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -3417,12 +3417,13 @@ AlterTableCreateToastTable(Oid relOid, bool silent) /* * Create unique index on chunk_id, chunk_seq. * - * NOTE: the tuple toaster could actually function with a single-column - * index on chunk_id only. However, it couldn't be unique then. We - * want it to be unique as a check against the possibility of - * duplicate TOAST chunk OIDs. Too, the index might be a little more - * efficient this way, since btree isn't all that happy with large - * numbers of equal keys. + * NOTE: the normal TOAST access routines could actually function with + * a single-column index on chunk_id only. However, the slice access + * routines use both columns for faster access to an individual chunk. + * In addition, we want it to be unique as a check against the + * possibility of duplicate TOAST chunk OIDs. The index might also be + * a little more efficient this way, since btree isn't all that happy + * with large numbers of equal keys. */ indexInfo = makeNode(IndexInfo); |