table is hanging

Started by Sonam Sharmaalmost 7 years ago6 messagesgeneral
Jump to latest
#1Sonam Sharma
sonams1209@gmail.com

Hi Team ,

when i am trying to do select on one table , its hanging and not giving any
output.
Can someone please advice what should I check for this ?

#2Sonam Sharma
sonams1209@gmail.com
In reply to: Sonam Sharma (#1)
Re: table is hanging

ADding to this, this no of records are present on this table : 19087314

On Fri, May 31, 2019 at 4:28 PM Sonam Sharma <sonams1209@gmail.com> wrote:

Show quoted text

Hi Team ,

when i am trying to do select on one table , its hanging and not giving
any output.
Can someone please advice what should I check for this ?

#3Nicklas Avén
nicklas.aven@jordogskog.no
In reply to: Sonam Sharma (#2)
Re: table is hanging

To find out if there is some locking problem or just takes time for the
client to handle the data, ask just for a small subset of the table.

If

select * from table limit 1;

works it is probably just taking a lot of time to send all the data to
the client.

If the data set includes something large also 1 ow can be heavy.

You can even try with limit 0 to just find out if the table responses.

The client software is often the largest bottleneck, not the database.

/Nicklas

Show quoted text

On 5/31/19 1:03 PM, Sonam Sharma wrote:

ADding to this, this no of records are present on this table :  19087314

On Fri, May 31, 2019 at 4:28 PM Sonam Sharma <sonams1209@gmail.com
<mailto:sonams1209@gmail.com>> wrote:

Hi Team ,

when i am trying to do select on one table , its hanging and not
giving any output.
Can someone please advice what should I check for this ?

#4Sonam Sharma
sonams1209@gmail.com
In reply to: Nicklas Avén (#3)
Re: table is hanging

I only fetched 2 rows and it's responding

On Fri, May 31, 2019, 4:39 PM Nicklas Avén <nicklas.aven@jordogskog.no>
wrote:

Show quoted text

To find out if there is some locking problem or just takes time for the
client to handle the data, ask just for a small subset of the table.

If

select * from table limit 1;

works it is probably just taking a lot of time to send all the data to the
client.

If the data set includes something large also 1 ow can be heavy.

You can even try with limit 0 to just find out if the table responses.

The client software is often the largest bottleneck, not the database.

/Nicklas

On 5/31/19 1:03 PM, Sonam Sharma wrote:

ADding to this, this no of records are present on this table : 19087314

On Fri, May 31, 2019 at 4:28 PM Sonam Sharma <sonams1209@gmail.com> wrote:

Hi Team ,

when i am trying to do select on one table , its hanging and not giving
any output.
Can someone please advice what should I check for this ?

#5Saurabh Agrawal
mail@saurabhagrawal.net
In reply to: Sonam Sharma (#4)
Re: table is hanging

Which query are you trying to run?

On Fri, May 31, 2019, 16:45 Sonam Sharma <sonams1209@gmail.com> wrote:

Show quoted text

I only fetched 2 rows and it's responding

On Fri, May 31, 2019, 4:39 PM Nicklas Avén <nicklas.aven@jordogskog.no>
wrote:

To find out if there is some locking problem or just takes time for the
client to handle the data, ask just for a small subset of the table.

If

select * from table limit 1;

works it is probably just taking a lot of time to send all the data to
the client.

If the data set includes something large also 1 ow can be heavy.

You can even try with limit 0 to just find out if the table responses.

The client software is often the largest bottleneck, not the database.

/Nicklas

On 5/31/19 1:03 PM, Sonam Sharma wrote:

ADding to this, this no of records are present on this table : 19087314

On Fri, May 31, 2019 at 4:28 PM Sonam Sharma <sonams1209@gmail.com>
wrote:

Hi Team ,

when i am trying to do select on one table , its hanging and not giving
any output.
Can someone please advice what should I check for this ?

#6Andreas Kretschmer
andreas@a-kretschmer.de
In reply to: Saurabh Agrawal (#5)
Re: table is hanging

Am 31.05.19 um 14:06 schrieb Saurabh Agrawal:

Which query are you trying to run?

you can show us also the EXPLAIN <your query> - Output.

Regards, Andreas

--
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com