aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/spgist/spgtextproc.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-05-08 14:29:28 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-05-08 14:34:26 +0300
commitcb953d8b1bf7386ff20300cd80b29b7e8657dcbd (patch)
tree96f48338b121cb70ab6739dd5b686b3ee0f5f69f /src/backend/access/spgist/spgtextproc.c
parent20c00ca668f2c5ca4e7e7afd1bd8faa0909ee527 (diff)
downloadpostgresql-cb953d8b1bf7386ff20300cd80b29b7e8657dcbd.tar.gz
postgresql-cb953d8b1bf7386ff20300cd80b29b7e8657dcbd.zip
Use the term "radix tree" instead of "suffix tree" for SP-GiST text opclass.
What we have implemented is a radix tree (or a radix trie or a patricia trie), but the docs and code comments incorrectly called it a "suffix tree". Alexander Korotkov
Diffstat (limited to 'src/backend/access/spgist/spgtextproc.c')
-rw-r--r--src/backend/access/spgist/spgtextproc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/spgist/spgtextproc.c b/src/backend/access/spgist/spgtextproc.c
index 9ffc8705645..8d50dcc6183 100644
--- a/src/backend/access/spgist/spgtextproc.c
+++ b/src/backend/access/spgist/spgtextproc.c
@@ -1,7 +1,7 @@
/*-------------------------------------------------------------------------
*
* spgtextproc.c
- * implementation of compressed-suffix tree over text
+ * implementation of radix tree (compressed trie) over text
*
*
* Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
@@ -23,7 +23,7 @@
/*
- * In the worst case, a inner tuple in a text suffix tree could have as many
+ * In the worst case, a inner tuple in a text radix tree could have as many
* as 256 nodes (one for each possible byte value). Each node can take 16
* bytes on MAXALIGN=8 machines. The inner tuple must fit on an index page
* of size BLCKSZ. Rather than assuming we know the exact amount of overhead