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 1ghKcq-0007kV-GF for pgsql-general@arkaria.postgresql.org; Wed, 09 Jan 2019 20:38:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ghKcp-0001mb-6X for pgsql-general@arkaria.postgresql.org; Wed, 09 Jan 2019 20:38:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ghKco-0001mU-S8 for pgsql-general@lists.postgresql.org; Wed, 09 Jan 2019 20:38:54 +0000 Received: from mail-oi1-x241.google.com ([2607:f8b0:4864:20::241]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ghKcm-0001g9-MY for pgsql-general@lists.postgresql.org; Wed, 09 Jan 2019 20:38:54 +0000 Received: by mail-oi1-x241.google.com with SMTP id w13so7411848oiw.9 for ; Wed, 09 Jan 2019 12:38:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=tyMKvp7zYss2WwaeUGx/Tn7kmh/m3Nh1gscaVWvqouE=; b=Lo8G9FWUFLGVXiB5Pq+lkNgfLYubysPYv8IgBa3Wlc1Xi2ZCSaxRqFL/PjJ+YRYsAZ ZTZ1D4xHonmvfsiXV+aigQr+t58K8y/Hh3RGD1pQgINZvb12yuAp3/jh9q4ReKv4h6bK S6uVi1snNK+xteGU7c5HVAVWwzSNvpgLP6M/Trm39cVgcLL+oq1uxwydoDJFiTjI6q0X 3STnDKK38XLLQPCi4yaRBPwY7gKXFjp3iXvdJLMybd/jdeu1jsBiNV5mC3Q03Dl31zfn A3LawybQmRgH2ZzyP65jlPXZ0MJiygGjmObWJRrVl2zMCN/t8zM34J4VI5kmbygbmOfK yCAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=tyMKvp7zYss2WwaeUGx/Tn7kmh/m3Nh1gscaVWvqouE=; b=fIERFZ6pj6pRcCsxaItp0dtJie0bZAVRVRKOYhfVHglurFnxmHWkLOogwyJA3htfp5 +dRPhS/IVzZ86Q1eQGFrHNkg3uOXb4u5s9JY+is1oMVhLaMV/E0DuTEIua+u9EA00CVp aOK9tjtbdAudRsMxCntscl7Lcak/Ab/gJkDebgUdIcg6WN5OZNtH1fiavbFS1nkGWsHD Ci3HqCgG5uZgGCFqivzIrxplRWjmiJTrPKFQCVSjxaYVmGkfNQrvFstlYQ8f7n8+VpCX 22YKgxDe0tC2bb4ijL2UHKFv0QQ15KTjjh96C0TujdgVVFdvvz7yfZtFkyXIUb3Jn4VF m2wQ== X-Gm-Message-State: AJcUukcprpeskP6cfI98GvPdzxh9jSS7n7oVLis/0aErCRenUL6Hkb+3 VSpmbX269cYVu7krTUmMZDiX6MbF X-Google-Smtp-Source: ALg8bN6LdMKPcVsElFzGs8h+QQR6T1Qr9xATsBrabNV8u7/Qpi12K6Ozchhu2toU42NKjq/aaNNm3Q== X-Received: by 2002:a05:6808:1c7:: with SMTP id x7mr4683449oic.264.1547066329671; Wed, 09 Jan 2019 12:38:49 -0800 (PST) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id r184sm34387163oif.56.2019.01.09.12.38.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 12:38:48 -0800 (PST) Subject: Re: postgres operational To: pgsql-general@lists.postgresql.org References: <87181bcc-029b-0c0f-6936-d612f01c2223@netwolves.com> From: Ron Message-ID: <1945c175-0c31-b030-5d52-6535c7f9a5d6@gmail.com> Date: Wed, 9 Jan 2019 14:38:48 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/9/19 12:19 PM, Martín Marqués wrote: > El 9/1/19 a las 14:58, Steve Clark escribió: >> 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. > Use `check_postgres` Isn't "pg_ctl status" the canonical method? -- Angular momentum makes the world go 'round.