[Rt-commit] rt branch, 4.2/pg-exploring-indexes, created. rt-4.1.23-222-ge2d360f

Ruslan Zakirov ruz at bestpractical.com
Tue Oct 1 13:39:56 EDT 2013


The branch, 4.2/pg-exploring-indexes has been created
        at  e2d360f94d6ce10d8fddfbcb935085f66477235c (commit)

- Log -----------------------------------------------------------------
commit e2d360f94d6ce10d8fddfbcb935085f66477235c
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Tue Oct 1 21:36:05 2013 +0400

    RT can in be in a custom Pg schema
    
    Drop schema in the query when we search for indexes. System catalogs are
    copied from the template database during database creation and are
    thereafter database-specific.

diff --git a/lib/RT/Handle.pm b/lib/RT/Handle.pm
index 0d7440b..87fb7f1 100644
--- a/lib/RT/Handle.pm
+++ b/lib/RT/Handle.pm
@@ -1301,8 +1301,8 @@ sub Indexes {
     }
     elsif ( $db_type eq 'Pg' ) {
         $list = $dbh->selectall_arrayref(
-            'select tablename, indexname from pg_indexes where schemaname = ?',
-            undef, 'public'
+            'select tablename, indexname from pg_indexes',
+            undef,
         );
     }
     elsif ( $db_type eq 'SQLite' ) {

-----------------------------------------------------------------------


More information about the Rt-commit mailing list