GiST and Tsvector references removed so DB/build will work

This commit is contained in:
Geoff Munn 2009-01-09 03:43:28 +00:00
parent b493435b5b
commit 5d9364721d
2 changed files with 7 additions and 4 deletions

View File

@ -1,2 +1,3 @@
<?php
?>

View File

@ -109,9 +109,9 @@ class PostgreSQLDatabase extends Database {
$starttime = microtime(true);
}
/*
echo 'sql: ' . $sql . '<br>';
*/
$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 '';
}
}