From 5d9364721d917226578f0a45e3a5ac89bae5d26c Mon Sep 17 00:00:00 2001 From: Geoff Munn Date: Fri, 9 Jan 2009 03:43:28 +0000 Subject: [PATCH] GiST and Tsvector references removed so DB/build will work --- _config.php | 1 + code/PostgreSQLDatabase.php | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/_config.php b/_config.php index a4abe2d..15c5adc 100644 --- a/_config.php +++ b/_config.php @@ -1,2 +1,3 @@ \ No newline at end of file diff --git a/code/PostgreSQLDatabase.php b/code/PostgreSQLDatabase.php index 7f38d8b..f8e4c4d 100644 --- a/code/PostgreSQLDatabase.php +++ b/code/PostgreSQLDatabase.php @@ -109,9 +109,9 @@ class PostgreSQLDatabase extends Database { $starttime = microtime(true); } - /* + echo 'sql: ' . $sql . '
'; - */ + $handle = pg_query($this->dbConn, $sql); if(isset($_REQUEST['showqueries'])) { @@ -209,7 +209,8 @@ class PostgreSQLDatabase extends Database { if($this_index['type']=='fulltext'){ //ALTER TABLE tblMessages ADD COLUMN idxFTI tsvector; //CREATE INDEX ix_vault_indexed_words ON vault_indexed USING gist(words); - $fulltexts.=$this_index['name'] . ' tsvector, '; + + //$fulltexts.=$this_index['name'] . ' tsvector, '; } } @@ -399,7 +400,8 @@ class PostgreSQLDatabase extends Database { } else { //create a type-specific index if($indexSpec['type']=='fulltext'){ - return 'create index ix_' . $tableName . '_' . $indexSpec['name'] . " ON \"" . $tableName . "\" USING gist(" . $indexSpec['name'] . ');'; + //return 'create index ix_' . $tableName . '_' . $indexSpec['name'] . " ON \"" . $tableName . "\" USING gist(" . $indexSpec['name'] . ');'; + return ''; } }