Re: [PERFORM] Best practice to load a huge table from ORACLE to PG

2008-04-28 Thread Adonias Malosso
Jonah, Thank you for the answer. Good to know about this enterprise DB feature. I´ll follow using pgloader. Regards. Adonias Malosso On Sat, Apr 26, 2008 at 10:14 PM, Jonah H. Harris <[EMAIL PROTECTED]> wrote: > On Sat, Apr 26, 2008 at 9:25 AM, Adonias Malosso <[EMAIL PROTECT

[PERFORM] Best practice to load a huge table from ORACLE to PG

2008-04-26 Thread Adonias Malosso
Hi All, I´d like to know what´s the best practice to LOAD a 70 milion rows, 101 columns table from ORACLE to PGSQL. The current approach is to dump the data in CSV and than COPY it to Postgresql. Anyone has a better idea. Regards Adonias Malosso

[PERFORM] [PERFORMANCE] Error loading 37G CSV file "invalid string enlargement request size 65536"

2008-04-22 Thread Adonias Malosso
s in postgresql.conf are: shared_buffers = 512MB temp_buffers = 256MB checkpoint_segments = 60 I´d also like to know if there´s any way to optimize huge data load in operations like these. Regards Adonias Malosso

Re: [PERFORM] 4s query want to run faster

2008-02-21 Thread Adonias Malosso
Set random_page_cost = 2 solved the problem. thanks On Thu, Feb 21, 2008 at 6:16 PM, Claus Guttesen <[EMAIL PROTECTED]> wrote: > > > > why it doesn´t use index for the primary keys in the join > conditions? > > > > > > Maby random_page_cost is set too high? What version are you using? > > > > Pos

Re: [PERFORM] 4s query want to run faster

2008-02-21 Thread Adonias Malosso
On Thu, Feb 21, 2008 at 6:10 PM, Claus Guttesen <[EMAIL PROTECTED]> wrote: > > The following query takes about 4s to run in a 16GB ram server. Any > ideas > > why it doesn´t use index for the primary keys in the join conditions? > > Maby random_page_cost is set too high? What version are you using

Re: [PERFORM] 4s query want to run faster

2008-02-21 Thread Adonias Malosso
21, 2008 at 5:58 PM, Scott Marlowe <[EMAIL PROTECTED]> wrote: > On Thu, Feb 21, 2008 at 2:48 PM, Adonias Malosso <[EMAIL PROTECTED]> > wrote: > > Hi all, > > > > The following query takes about 4s to run in a 16GB ram server. Any > ideas > > why it does

[PERFORM] 4s query want to run faster

2008-02-21 Thread Adonias Malosso
Hi all, The following query takes about 4s to run in a 16GB ram server. Any ideas why it doesn´t use index for the primary keys in the join conditions? select i.inuid, count(*) as total from cte.instrumentounidade i inner join cte.pontuacao p on p.inuid = i.inuid inner join cte.acaoindicador ai o