Re: Issue with postgres connectivity

Lists: pgsql-sql
From: Arindam Hore <arindam(dot)hore(at)in(dot)v2solutions(dot)com>
To: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Issue with postgres connectivity
Date: 2011-01-21 10:45:37
Message-ID: 2C43C4BE6357654AB4E898C9E9EBA83E32BC2849@mbx.in.v2solutions.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-sql

Hello All,

I am facing a big problem in postgres connectivity using php application. It is taking almost 10 sec for connection establishment. All my applications were working perfectly 2 days before. Yesterday just it started giving problem. Using pg-admin also it is taking time to connect as well as same with opening server status window or with sql query window.

Postgres is installed in linux environment. Don't know whether is it due to some virus or something else.

Please provide me with some guidelines. Ask me any queries.

Thanks,
Arindam

V2Solutions
A New Vision to Solutions
India: +91-22-66733201 Ext:- 676
US : 1-408-454-6051 Ext:- 263
http://www.v2solutions.com<http://www.v2solutions.com/>
TZ : +5:30 GMT

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.


From: Reinoud van Leeuwen <reinoud(dot)v(at)n(dot)leeuwen(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Issue with postgres connectivity
Date: 2011-01-21 10:57:28
Message-ID: 20110121105728.GJ80182@spoetnik.xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-sql

On Fri, Jan 21, 2011 at 10:45:37AM +0000, Arindam Hore wrote:
> Hello All,
>
> I am facing a big problem in postgres connectivity using php application. It is taking almost 10 sec for connection establishment. All my applications were working perfectly 2 days before. Yesterday just it started giving problem. Using pg-admin also it is taking time to connect as well as same with opening server status window or with sql query window.
>
> Postgres is installed in linux environment. Don't know whether is it due to some virus or something else.
>
> Please provide me with some guidelines. Ask me any queries.

this smells like DNS resolving...

Reinoud

--
__________________________________________________
"Nothing is as subjective as reality"
Reinoud van Leeuwen reinoud(dot)v(at)n(dot)leeuwen(dot)net
http://reinoud.van.leeuwen.net kvk 27320762
__________________________________________________


From: Arindam Hore <arindam(dot)hore(at)in(dot)v2solutions(dot)com>
To: Reinoud van Leeuwen <reinoud(dot)v(at)n(dot)leeuwen(dot)net>, "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Issue with postgres connectivity
Date: 2011-01-21 11:17:25
Message-ID: 2C43C4BE6357654AB4E898C9E9EBA83E32BC2867@mbx.in.v2solutions.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-sql

Thanks Reinoud for quick reply. How can I test it? Is there any way?

-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org] On Behalf Of Reinoud van Leeuwen
Sent: Friday, January 21, 2011 4:27 PM
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Issue with postgres connectivity

On Fri, Jan 21, 2011 at 10:45:37AM +0000, Arindam Hore wrote:
> Hello All,
>
> I am facing a big problem in postgres connectivity using php application. It is taking almost 10 sec for connection establishment. All my applications were working perfectly 2 days before. Yesterday just it started giving problem. Using pg-admin also it is taking time to connect as well as same with opening server status window or with sql query window.
>
> Postgres is installed in linux environment. Don't know whether is it due to some virus or something else.
>
> Please provide me with some guidelines. Ask me any queries.

this smells like DNS resolving...

Reinoud

--
__________________________________________________
"Nothing is as subjective as reality"
Reinoud van Leeuwen reinoud(dot)v(at)n(dot)leeuwen(dot)net
http://reinoud.van.leeuwen.net kvk 27320762
__________________________________________________

--
Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.


From: Arindam Hore <arindam(dot)hore(at)in(dot)v2solutions(dot)com>
To: Reinoud van Leeuwen <reinoud(dot)v(at)n(dot)leeuwen(dot)net>, "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Issue with postgres connectivity
Date: 2011-01-21 11:43:49
Message-ID: 2C43C4BE6357654AB4E898C9E9EBA83E32BC287B@mbx.in.v2solutions.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-sql

We are accessing database using ip address.

-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org] On Behalf Of Reinoud van Leeuwen
Sent: Friday, January 21, 2011 4:27 PM
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Issue with postgres connectivity

On Fri, Jan 21, 2011 at 10:45:37AM +0000, Arindam Hore wrote:
> Hello All,
>
> I am facing a big problem in postgres connectivity using php application. It is taking almost 10 sec for connection establishment. All my applications were working perfectly 2 days before. Yesterday just it started giving problem. Using pg-admin also it is taking time to connect as well as same with opening server status window or with sql query window.
>
> Postgres is installed in linux environment. Don't know whether is it due to some virus or something else.
>
> Please provide me with some guidelines. Ask me any queries.

this smells like DNS resolving...

Reinoud

--
__________________________________________________
"Nothing is as subjective as reality"
Reinoud van Leeuwen reinoud(dot)v(at)n(dot)leeuwen(dot)net
http://reinoud.van.leeuwen.net kvk 27320762
__________________________________________________

--
Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.


From: "Edward W(dot) Rouse" <erouse(at)comsquared(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Issue with postgres connectivity
Date: 2011-01-21 14:47:29
Message-ID: 08a501cbb97a$20e61790$62b246b0$@com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-sql

When was the last time you did a vacuum analyze?

Edward W. Rouse

-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org]
On Behalf Of Arindam Hore
Sent: Friday, January 21, 2011 6:44 AM
To: Reinoud van Leeuwen; pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Issue with postgres connectivity

We are accessing database using ip address.

-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org]
On Behalf Of Reinoud van Leeuwen
Sent: Friday, January 21, 2011 4:27 PM
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Issue with postgres connectivity

On Fri, Jan 21, 2011 at 10:45:37AM +0000, Arindam Hore wrote:
> Hello All,
>
> I am facing a big problem in postgres connectivity using php application.
It is taking almost 10 sec for connection establishment. All my applications
were working perfectly 2 days before. Yesterday just it started giving
problem. Using pg-admin also it is taking time to connect as well as same
with opening server status window or with sql query window.
>
> Postgres is installed in linux environment. Don't know whether is it due
to some virus or something else.
>
> Please provide me with some guidelines. Ask me any queries.

this smells like DNS resolving...

Reinoud

--
__________________________________________________
"Nothing is as subjective as reality"
Reinoud van Leeuwen reinoud(dot)v(at)n(dot)leeuwen(dot)net
http://reinoud.van.leeuwen.net kvk 27320762
__________________________________________________

--
Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail.


From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Issue with postgres connectivity
Date: 2011-01-22 08:53:40
Message-ID: ihe5uk$hl3$1@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-sql

On 2011-01-21, Arindam Hore <arindam(dot)hore(at)in(dot)v2solutions(dot)com> wrote:
> We are accessing database using ip address.

try adding the IP addresses of some of the clients as seen by the
server to /etc/hosts on the server. see if that helps.

try connecting to the server locally using 'su postgres -c psql'
see if that's slow too.

--
⚂⚃ 100% natural


From: Arindam Hore <arindam(dot)hore(at)in(dot)v2solutions(dot)com>
To: "Edward W(dot) Rouse" <erouse(at)comsquared(dot)com>, "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Issue with postgres connectivity
Date: 2011-01-22 15:40:37
Message-ID: 2C43C4BE6357654AB4E898C9E9EBA83E32BC2E60@mbx.in.v2solutions.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-sql

Sorry for late reply. We usually do vacuum analyze daily basis using cron.

-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org] On Behalf Of Edward W. Rouse
Sent: Friday, January 21, 2011 8:17 PM
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Issue with postgres connectivity

When was the last time you did a vacuum analyze?

Edward W. Rouse

-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org]
On Behalf Of Arindam Hore
Sent: Friday, January 21, 2011 6:44 AM
To: Reinoud van Leeuwen; pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Issue with postgres connectivity

We are accessing database using ip address.

-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org]
On Behalf Of Reinoud van Leeuwen
Sent: Friday, January 21, 2011 4:27 PM
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Issue with postgres connectivity

On Fri, Jan 21, 2011 at 10:45:37AM +0000, Arindam Hore wrote:
> Hello All,
>
> I am facing a big problem in postgres connectivity using php application.
It is taking almost 10 sec for connection establishment. All my applications
were working perfectly 2 days before. Yesterday just it started giving
problem. Using pg-admin also it is taking time to connect as well as same
with opening server status window or with sql query window.
>
> Postgres is installed in linux environment. Don't know whether is it due
to some virus or something else.
>
> Please provide me with some guidelines. Ask me any queries.

this smells like DNS resolving...

Reinoud

--
__________________________________________________
"Nothing is as subjective as reality"
Reinoud van Leeuwen reinoud(dot)v(at)n(dot)leeuwen(dot)net
http://reinoud.van.leeuwen.net kvk 27320762
__________________________________________________

--
Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail.

--
Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql

--
Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.


From: Arindam Hore <arindam(dot)hore(at)in(dot)v2solutions(dot)com>
To: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>, "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Issue with postgres connectivity
Date: 2011-01-22 15:43:18
Message-ID: 2C43C4BE6357654AB4E898C9E9EBA83E32BC2E71@mbx.in.v2solutions.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-sql

What I have seen is that, when I am trying to connect the db server from application server using ssh, the response was very slow. While from db server to application server it is very quick as usually.

-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org] On Behalf Of Jasen Betts
Sent: Saturday, January 22, 2011 2:24 PM
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Issue with postgres connectivity

On 2011-01-21, Arindam Hore <arindam(dot)hore(at)in(dot)v2solutions(dot)com> wrote:
> We are accessing database using ip address.

try adding the IP addresses of some of the clients as seen by the
server to /etc/hosts on the server. see if that helps.

try connecting to the server locally using 'su postgres -c psql'
see if that's slow too.

--
⚂⚃ 100% natural

--
Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.