Unix Technical Forum

Re: psql is very slow

This is a discussion on Re: psql is very slow within the pgsql Novice forums, part of the PostgreSQL category; --> Michal, I have no idea what is in the base directory. Perhaps some of the more experienced users on ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 09:40 PM
Sean Davis
 
Posts: n/a
Default Re: psql is very slow

Michal,

I have no idea what is in the base directory. Perhaps some of the more
experienced users on the list can enlighten us.

What I meant about being specific was showing what it was that was slow and
the commands that you were using to produce those results. The databases
that we use are on the order of several Gb, so 100Mb isn't that big.

One thing you should definitely consider doing is to upgrade to a newer
version of postgresql.

Sean

On 3/8/06 10:10 AM, "Michal Merta" <michal.merta@gmail.com> wrote:

> Hi Sean,
> yes, you're right, i was thinking about postgresql.
> But, now i can see somethink like:
>
> cztn base # du -sm /home/postgres/*
> 1 /home/postgres/PG_VERSION
> 2779 /home/postgres/base
> 1 /home/postgres/global
> 1 /home/postgres/pg_clog
> 1 /home/postgres/pg_hba.conf
> 1 /home/postgres/pg_ident.conf
> 129 /home/postgres/pg_xlog
> 1 /home/postgres/postgresql.conf
> 21 /home/postgres/postgresql.log
> 105 /home/postgres/postgresql.log.old
> 1 /home/postgres/postmaster.opts
> 1 /home/postgres/postmaster.pid
> cztn base #
>
> Is this normal? Almost 3gigabytes in base directory?
>
> cztn base # ls /home/postgres/base
> 1 16975 19932600 20370917
> cztn base #
>
> Thanks,
> Michal
>
> On 2/24/06, Sean Davis <sdavis2@mail.nih.gov> wrote:
>>
>>
>>
>>
>> On 2/22/06 10:23 AM, "Michal Merta" <michal.merta@gmail.com> wrote:
>>
>>> I have a psql 7.3.4, apache 2.0.40, perl v5.8.0. Database is pretty

>> big,
>>> (dump is about 100Megs).
>>> But all the operations are very, very slow.
>>> Is any possibility to make postgresql more quick? (don't tell me to cut

>> the
>>> database )

>>
>> I assume that by "psql" you mean postgresql?
>>
>> You'll probably have to be more specific about what you are doing, what
>> your
>> database is like and how it is used, what you want to change, and what
>> kinds
>> of time you are talking about.
>>
>> Sean
>>
>>
>>



---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 09:40 PM
Patrick Meylemans
 
Posts: n/a
Default Re: psql is very slow

Dear,

#vacuumdb -f -z dbname

Then test again, you will be surprized !

Kind Regards

Patrick

At 22:06 8/03/2006, Sean Davis wrote:
>Michal,
>
>I have no idea what is in the base directory. Perhaps some of the more
>experienced users on the list can enlighten us.
>
>What I meant about being specific was showing what it was that was slow and
>the commands that you were using to produce those results. The databases
>that we use are on the order of several Gb, so 100Mb isn't that big.
>
>One thing you should definitely consider doing is to upgrade to a newer
>version of postgresql.
>
>Sean
>
>On 3/8/06 10:10 AM, "Michal Merta" <michal.merta@gmail.com> wrote:
>
> > Hi Sean,
> > yes, you're right, i was thinking about postgresql.
> > But, now i can see somethink like:
> >
> > cztn base # du -sm /home/postgres/*
> > 1 /home/postgres/PG_VERSION
> > 2779 /home/postgres/base
> > 1 /home/postgres/global
> > 1 /home/postgres/pg_clog
> > 1 /home/postgres/pg_hba.conf
> > 1 /home/postgres/pg_ident.conf
> > 129 /home/postgres/pg_xlog
> > 1 /home/postgres/postgresql.conf
> > 21 /home/postgres/postgresql.log
> > 105 /home/postgres/postgresql.log.old
> > 1 /home/postgres/postmaster.opts
> > 1 /home/postgres/postmaster.pid
> > cztn base #
> >
> > Is this normal? Almost 3gigabytes in base directory?
> >
> > cztn base # ls /home/postgres/base
> > 1 16975 19932600 20370917
> > cztn base #
> >
> > Thanks,
> > Michal
> >
> > On 2/24/06, Sean Davis <sdavis2@mail.nih.gov> wrote:
> >>
> >>
> >>
> >>
> >> On 2/22/06 10:23 AM, "Michal Merta" <michal.merta@gmail.com> wrote:
> >>
> >>> I have a psql 7.3.4, apache 2.0.40, perl v5.8.0. Database is pretty
> >> big,
> >>> (dump is about 100Megs).
> >>> But all the operations are very, very slow.
> >>> Is any possibility to make postgresql more quick? (don't tell me to cut
> >> the
> >>> database )
> >>
> >> I assume that by "psql" you mean postgresql?
> >>
> >> You'll probably have to be more specific about what you are doing, what
> >> your
> >> database is like and how it is used, what you want to change, and what
> >> kinds
> >> of time you are talking about.
> >>
> >> Sean
> >>
> >>
> >>

>
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: Don't 'kill -9' the postmaster




---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:06 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com