Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ghI7y-0007Kp-R4 for pgsql-general@arkaria.postgresql.org; Wed, 09 Jan 2019 17:58:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ghI7x-0003Sh-5W for pgsql-general@arkaria.postgresql.org; Wed, 09 Jan 2019 17:58:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ghI7w-0003SX-QB for pgsql-general@lists.postgresql.org; Wed, 09 Jan 2019 17:58:52 +0000 Received: from mail016.151.24.a.static.mtka.securence.com ([216.17.24.151]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ghI7s-0006OE-Li for pgsql-general@postgresql.org; Wed, 09 Jan 2019 17:58:51 +0000 Received: from sclark66.netwolves.com (mail.netwolves.com [173.65.53.194]) by mta31.mtka.securence.com (Securence v1118) with ESMTP id 1547056724454-031-00101910; Wed, 09 Jan 2019 11:58:44 -0600 (CST) To: pgsql From: Steve Clark Subject: postgres operational Message-ID: <87181bcc-029b-0c0f-6936-d612f01c2223@netwolves.com> Date: Wed, 9 Jan 2019 12:58:44 -0500 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Securence-ID: 1547056724454-031-00101910 X-Securence-Country-Code: US - UNITED STATES X-Securence-TLS-SUITE-RECEPTION: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 X-Securence-odset: netwolves.com X-Securence-RFC2821-MAIL-FROM: steve.clark@netwolves.com X-Securence-USIAS-IP-Reputation-Analysis-1: 0, 127.0.0.1, Ignore c=0 p=0 Source New X-Securence-USIAS-Rules-1: 0-0-0-1363-c X-Securence-USIAS-Scan-Result-1: 0 X-Securence-Bayes: 0/0 X-Securence-Latseq: <31-1547056727484> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi List, Is there a sure fire way to tell if postgres server is up an operational. I was testing to see if the socket at /tmp/.s.PGSQL.5432 existed - but I ran into a recent problem on CentOS 7.5, postgresql 9.2.24, where the socket was there but my script couldn't read from my database yet. Thanks, Steve --