From: | Jean-Paul ARGUDO <jean-paul(dot)argudo(at)idealx(dot)com> |
---|---|
To: | Hannu Krosing <hannu(at)krosing(dot)net> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Oracle vs PostgreSQL in real life |
Date: | 2002-02-28 09:32:48 |
Message-ID: | 20020228103248.A23176@singer.ird.idealx.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi all,
As I wrote it before there, it is an ECPG script that runs with bad perfs.
I put back trace/ notices/debug mode on the server.
Here is an example of what does the debug doesnt stop to do:
c... stuffs are CURSORS
it seems that on every commit, the cursor is closed
[... snip ...]
NOTICE: Closing pre-existing portal "csearcht04"
NOTICE: Closing pre-existing portal "csearcht30"
NOTICE: Closing pre-existing portal "cfindplu"
NOTICE: Closing pre-existing portal "cfindplu"
NOTICE: Closing pre-existing portal "cfindplu"
NOTICE: Closing pre-existing portal "cfindplu"
NOTICE: Closing pre-existing portal "cfindplu"
NOTICE: Closing pre-existing portal "cfindplu"
NOTICE: Closing pre-existing portal "cfindplu"
NOTICE: Closing pre-existing portal "cfindplu"
NOTICE: Closing pre-existing portal "csearcht04"
NOTICE: Closing pre-existing portal "csearcht30"
NOTICE: Closing pre-existing portal "cfindplu"
NOTICE: Closing pre-existing portal "cfindplu"
NOTICE: Closing pre-existing portal "cfindplu"
NOTICE: Closing pre-existing portal "cfindplu"
NOTICE: Closing pre-existing portal "cfindplu"
NOTICE: Closing pre-existing portal "cfindplu"
NOTICE: Closing pre-existing portal "cfindplu"
[... snip ...]
c... stuffs are CURSORS
it seems that on every commit, the cursor is closed... and re-opened with new
variables'values
btw, as many asked me, queries are VERY simple, there is only a few queries.
Each query works on one table at a time. no joins for example. Only massive bulk
work with CURSORS.
Any way to avoid closing/opening of cursors?
Any tip on porting the best way cursors?;.
thanks in advance.
PS: I am currently testing vacuums between the script to pause the data
manipulation, make a vacuum analyze and continue the treatments.
--
Jean-Paul ARGUDO
From | Date | Subject | |
---|---|---|---|
Next Message | Miguel A. =?ISO-8859-1?Q?Ar=E9valo?= | 2002-02-28 09:40:13 | Clues about tables fileformat |
Previous Message | Dave Page | 2002-02-28 09:03:41 | Re: eWeek Poll: Which database is most critical to your |