From: Day, David <dday@redcom.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: RE: attempting to retrieve column names from information schema fails.
Date: Mon, 4 Dec 2017 18:15:14 +0000
Message-ID: <c3aed4403f514b2e83212a2b5a8036f8@exch-02.redcom.com> (raw)
In-Reply-To: <21131.1512403695@sss.pgh.pa.us>
References: <182854d4bc7e4438a3ade4cecaae3694@exch-02.redcom.com>
<21131.1512403695@sss.pgh.pa.us>
Thank you Tom.
I'll log that suggestion with our internal trouble report for actions to take on it's next occurrence.
I should have thought of using your suggested view. It's been some time since I have had any
suspicious postgresql behavior to explore and had forgotten about some of the better power tools.
Admin skills get rusty.
Best
Dave
-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Monday, December 04, 2017 11:08 AM
To: Day, David <dday@redcom.com>
Cc: pgsql-general@postgresql.org
Subject: Re: attempting to retrieve column names from information schema fails.
"Day, David" <dday@redcom.com> writes:
> I'm looking on some insights on the following problem on retrieving
> table column names from the information schema ( postgres 9.6.6 FreeBSD 11.1 ) When my client starts up up. Each thread ( 10 ) run this command.
> select column_name from information_schema.columns where table_name =
> 'pep_port_log'; I have encountered two instances of testing Where the server does not respond to that command.
Hm. Next time it happens, look into pg_stat_activity to see if the backend process is waiting, and if so for what, and what other processes are waiting. (I'm wondering about undetected deadlocks, for instance.) If it's running, maybe you could collect some stack traces to try to narrow down what it's doing. Actually, a stack trace would be useful if it's waiting, too.
https://wiki.postgresql.org/wiki/Getting_a_stack_trace_of_a_running_PostgreSQL_backend_on_Linux/BSD
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: dday@redcom.com, tgl@sss.pgh.pa.us
Subject: Re: attempting to retrieve column names from information schema fails.
In-Reply-To: <c3aed4403f514b2e83212a2b5a8036f8@exch-02.redcom.com>
References: <182854d4bc7e4438a3ade4cecaae3694@exch-02.redcom.com> <21131.1512403695@sss.pgh.pa.us> <c3aed4403f514b2e83212a2b5a8036f8@exch-02.redcom.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox