Re: Perl,Postmaster and CPU question??

From: Doug McNaught <doug(at)wireboard(dot)com>
To: "gabriel" <gabriel(at)workingnetsp(dot)com(dot)br>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Perl,Postmaster and CPU question??
Date: 2001-08-13 18:14:13
Message-ID: m3ae13zv2i.fsf@belphigor.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"gabriel" <gabriel(at)workingnetsp(dot)com(dot)br> writes:

> hello all
>
> I have a perl script that read a text file and
> insert the data in a table...
>
> but when this script is runing the usage of CPU by postmaster grows to
> between 79 and 90 percent...

And this is a problem because... ?

Honestly, you're doing a lot of work, why wouldn't the CPU be busy?

> there's something to do about it?

Are you using COPY or a series of INSERTs? If the latter, are you
doing them all inside a transaction? INSERTs not wrapped in a
transaction will load the system a lot more due to transaction
overhead and disk sync latency.

-Doug
--
Free Dmitry Sklyarov!
http://www.freesklyarov.org/

We will return to our regularly scheduled signature shortly.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-08-13 18:22:36 Re: Rename config.h to pg_config.h?
Previous Message Doug McNaught 2001-08-13 18:07:58 Re: Re: AW: Re: OID wraparound: summary and proposal