[ADMIN] Optimizer choosing smaller index instead of right one

2004-04-27 Thread Eduardo Naschenweng
Hello,This is probably a common problem, but I couldn't really find a direct answer in the archives (or maybe just couldn't find one that satisfied me ;-). I created an index specifically to help a query and the optimizer does not use it. It prefers an older index

[ADMIN] Does SETOF make queries slower?

2004-04-01 Thread Eduardo Naschenweng
 Greetings,It seems that stored procedures that use SETOF are slower than regular sqlcommands. Why does it happens?Please check out the following example.bxs=# \d cham_chamadaTable "public.cham_chamada"Column | Type | Modifiers---+--

[ADMIN] Space Problems

2004-03-16 Thread Eduardo Naschenweng
Hi, I has a problem with a production database Postgres 7.1.2. Happens when finished free space disk. Some important tables were empty with no reason. I tried to find respectives files for tables with psql command :   select relfilenode from pg_classwher