Solution for ZEOS 6.6.6 with >= FPC2.5.x

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

sem-evgen
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: 18.11.2012, 21:37

Post by sem-evgen »

Thanks, i will try.
sem-evgen
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: 18.11.2012, 21:37

Post by sem-evgen »

last working fast revision is 905. 906 is slow
diff:

Code: Select all

--- C:/Users/sem/AppData/Local/Temp/ZDbcPostgreSqlMetadata.pas-rev905.svn000.tmp.pas	Вт янв 19 02:06:36 2010
+++ C:/Users/sem/AppData/Local/Temp/ZDbcPostgreSqlMetadata.pas-rev906.svn000.tmp.pas	Пт авг 12 01:10:23 2011
@@ -1958,7 +1958,9 @@
       begin
         SQL := SQL + ' AND n.nspname LIKE '
           + EscapeString(SchemaPattern);
-      end;
+      end else begin
+         SQL := SQL + ' AND pg_table_is_visible (c.oid) ';
+      end; 
     end
     else
     begin
sem-evgen
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: 18.11.2012, 21:37

Post by sem-evgen »

i just comment this strings

Code: Select all

end else begin
       SQL := SQL + ' AND pg_table_is_visible (c.oid) ';
and query works 7 times faster, thanks all for help ))
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

sem-evgen,

thank you for your help and sorry for the many mistakes in previous posts. Writing english with a german smartphone.. (:

I made a full testrun with our suites. No issues to see. Patch applied Rev. 2057 \testing (SVN) in trunk and testing-7.1 next week.
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
sem-evgen
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: 18.11.2012, 21:37

Post by sem-evgen »

Sorry for my English =)
Post Reply