Unix Technical Forum

Re: Unable to perform any queries on a table

This is a discussion on Re: Unable to perform any queries on a table within the pgsql Novice forums, part of the PostgreSQL category; --> Check out your postgres server log for any errors. Look for any abnormal postgres processes running on server (top)? ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 11:06 PM
Tomeh, Husam
 
Posts: n/a
Default Re: Unable to perform any queries on a table


Check out your postgres server log for any errors. Look for any abnormal
postgres processes running on server (top)?
(When was the last time you vacuumed your database?)

--
Husam
firstdba.googlepages.com


-----Original Message-----
From: pgsql-novice-owner@postgresql.org
[mailtogsql-novice-owner@postgresql.org] On Behalf Of Carol Cheung
Sent: Friday, August 11, 2006 9:17 AM
To: pgsql-novice@postgresql.org
Subject: [NOVICE] Unable to perform any queries on a table

Hi,
I have table that had appx 675K rows. Performing SELECTs were fine. Then

I added appx 300K records to the table, all queries on this table are
now stalling.
Trying to "EXPLAIN ANALYZE" the queries aren't returning anything.
Vacuuming (not full) is hanging as well.

Does anyone have any pointers on how to investigate what's going on?

Thanks,
C

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org
************************************************** ********************
This message contains confidential information intended only for the use of the addressee(s) named above and may contain information that is legally privileged. If you are not the addressee, or the person responsible for delivering it to the addressee, you are hereby notified that reading, disseminating, distributing or copying this message is strictly prohibited. If you have received this message by mistake, please immediately notify us by replying to the message and delete the original message immediately thereafter.

Thank you.

FADLD Tag
************************************************** ********************


---------------------------(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
  #2 (permalink)  
Old 04-17-2008, 11:06 PM
Carol Cheung
 
Posts: n/a
Default Re: Unable to perform any queries on a table

I forgot to mention that I have other smaller tables for which queries
are executing fine.

There have been no deletions from any of the tables, so I haven't
vacuumed. But I'm attempting lazy-vacuum and it is also hanging.

Thanks for your help,
Carol

Tomeh, Husam wrote:
> Check out your postgres server log for any errors. Look for any abnormal
> postgres processes running on server (top)?
> (When was the last time you vacuumed your database?)
>
> --
> Husam
> firstdba.googlepages.com
>
>
> -----Original Message-----
> From: pgsql-novice-owner@postgresql.org
> [mailtogsql-novice-owner@postgresql.org] On Behalf Of Carol Cheung
> Sent: Friday, August 11, 2006 9:17 AM
> To: pgsql-novice@postgresql.org
> Subject: [NOVICE] Unable to perform any queries on a table
>
> Hi,
> I have table that had appx 675K rows. Performing SELECTs were fine. Then
>
> I added appx 300K records to the table, all queries on this table are
> now stalling.
> Trying to "EXPLAIN ANALYZE" the queries aren't returning anything.
> Vacuuming (not full) is hanging as well.
>
> Does anyone have any pointers on how to investigate what's going on?
>
> Thanks,
> C
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
> ************************************************** ********************
> This message contains confidential information intended only for the use of the addressee(s) named above and may contain information that is legally privileged. If you are not the addressee, or the person responsible for delivering it to the addressee, you are hereby notified that reading, disseminating, distributing or copying this message is strictly prohibited. If you have received this message by mistake, please immediately notify us by replying to the message and delete the original message immediately thereafter.
>
> Thank you.
>
>
> FADLD Tag
> ************************************************** ********************
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings


---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-17-2008, 11:06 PM
Brad Nicholson
 
Posts: n/a
Default Re: Unable to perform any queries on a table

Check pg_locks to see if something has an exclusive lock on the table.

On Fri, 2006-08-11 at 12:32 -0400, Carol Cheung wrote:
> I forgot to mention that I have other smaller tables for which queries
> are executing fine.
>
> There have been no deletions from any of the tables, so I haven't
> vacuumed. But I'm attempting lazy-vacuum and it is also hanging.
>
> Thanks for your help,
> Carol
>
> Tomeh, Husam wrote:
> > Check out your postgres server log for any errors. Look for any abnormal
> > postgres processes running on server (top)?
> > (When was the last time you vacuumed your database?)
> >
> > --
> > Husam
> > firstdba.googlepages.com
> >
> >
> > -----Original Message-----
> > From: pgsql-novice-owner@postgresql.org
> > [mailtogsql-novice-owner@postgresql.org] On Behalf Of Carol Cheung
> > Sent: Friday, August 11, 2006 9:17 AM
> > To: pgsql-novice@postgresql.org
> > Subject: [NOVICE] Unable to perform any queries on a table
> >
> > Hi,
> > I have table that had appx 675K rows. Performing SELECTs were fine. Then
> >
> > I added appx 300K records to the table, all queries on this table are
> > now stalling.
> > Trying to "EXPLAIN ANALYZE" the queries aren't returning anything.
> > Vacuuming (not full) is hanging as well.
> >
> > Does anyone have any pointers on how to investigate what's going on?
> >
> > Thanks,
> > C
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 4: Have you searched our list archives?
> >
> > http://archives.postgresql.org
> > ************************************************** ********************
> > This message contains confidential information intended only for the use of the addressee(s) named above and may contain information that is legally privileged. If you are not the addressee, or the person responsible for delivering it to the addressee, you are hereby notified that reading, disseminating, distributing or copying this message is strictly prohibited. If you have received this message by mistake, please immediately notify us by replying to the message and delete the original message immediately thereafter.
> >
> > Thank you.
> >
> >
> > FADLD Tag
> > ************************************************** ********************
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 5: don't forget to increase your free space map settings

>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org



---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

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 04:08 PM.


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