Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jkguO-0002iv-I2 for pgsql-general@arkaria.postgresql.org; Mon, 15 Jun 2020 04:39:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jkguM-0003be-DS for pgsql-general@arkaria.postgresql.org; Mon, 15 Jun 2020 04:39:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jkguM-0003bX-19 for pgsql-general@lists.postgresql.org; Mon, 15 Jun 2020 04:39:42 +0000 Received: from mail-main.masimo.com ([50.59.0.134] helo=USIRVPPES05.masimo.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jkguI-0005wE-8q for pgsql-general@lists.postgresql.org; Mon, 15 Jun 2020 04:39:39 +0000 Received: from pps.filterd (USIRVPPES05.masimo.com [127.0.0.1]) by USIRVPPES05.masimo.com (8.16.0.42/8.16.0.42) with SMTP id 05F4BbBO029755 for ; Sun, 14 Jun 2020 21:38:24 -0700 Received: from dgmta01 ([10.1.11.98]) by USIRVPPES05.masimo.com with ESMTP id 31mvsfv5yn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sun, 14 Jun 2020 21:38:24 -0700 From: Joseph Maruca To: "pgsql-general@lists.postgresql.org" Subject: Unable to execute pg_dump Thread-Topic: Unable to execute pg_dump Thread-Index: AdZCzs0IsOL01XuGQzCdNrE82whnUg== Date: Mon, 15 Jun 2020 04:38:22 +0000 Message-ID: <3e8a19df5ce7480bb7d5b6647e514a91@masimo.com> Accept-Language: en-AU, en-US Content-Language: en-US X-MS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UFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUVBQUFBQUFBQUFBZ0FBQUFBQW5nQUFBR1VBYlFCaEFHa0Fi?= =?us-ascii?Q?QUJmQUdFQVpBQmtBSElBWlFCekFITUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFRQUFB?= =?us-ascii?Q?QUFBQUFBQ0FBQUFBQUE9Ii8+PC9tZXRhPg=3D=3D?= x-originating-ip: [10.1.10.121] Content-Type: multipart/alternative; boundary="_000_3e8a19df5ce7480bb7d5b6647e514a91masimocom_" MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_3e8a19df5ce7480bb7d5b6647e514a91masimocom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello everyone, I am trying to work out a way to perform a PostgreSQL pg_dump of a single D= B via RHEL v6.10 command line. Now the system I am working on is that you h= ave to shell into Bash 4.1 first before you get to PSQL. Now I can access t= he actual PSQL db using the following syntax from the command line which wo= rks fine: '''sudo -u postgres -H --psql -pxxxxx -d db_name''' If I enter the following syntax from the RHEL command line: '''sudo su postgres''' I end up in the bash-4.1 shell. When executing the following command from w= ithin the shell: bash-4.1$ pg_dump db_name > /tmp/my_database.sql I am pres= ented with the following error: pg_dump: [archiver (db)] connection to database "db_name" failed: could not= connect to server: No such file or directory Is the server running locally= and accepting connections on Unix domain socket "/var/run/postgresql/.s.PG= SQL.5432"? I am expecting the db to be exported to /tmp/my_database.sql file. I have t= ried various combinations of commands from both RHEL and bash command lines= but cannot achieve the desired outcome. Your assistance would be greatly a= ppreciated, thank you. Regards, Joe28a --_000_3e8a19df5ce7480bb7d5b6647e514a91masimocom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello everyone,=

I am trying to = work out a way to perform a PostgreSQL pg_dump of a single DB via RHEL v6.1= 0 command line. Now the system I am working on is that you have to shell in= to Bash 4.1 first before you get to PSQL. Now I can access the actual PSQL db using the following syntax from the comman= d line which works fine:

'''sudo -u post= gres -H --psql -pxxxxx -d db_name'''

If I enter the = following syntax from the RHEL command line:

'''sudo su post= gres'''

I end up in the= bash-4.1 shell. When executing the following command from within the shell= : bash-4.1$ pg_dump db_name > /tmp/my_database.sql I am presented with t= he following error:

pg_dump: [archi= ver (db)] connection to database "db_name" failed: could not conn= ect to server: No such file or directory Is the server running locally and = accepting connections on Unix domain socket "/var/run/postgresql/.s.PG= SQL.5432"?

I am expecting = the db to be exported to /tmp/my_database.sql file. I have tried various co= mbinations of commands from both RHEL and bash command lines but cannot ach= ieve the desired outcome. Your assistance would be greatly appreciated, thank you.

Regards,

Joe28a=

--_000_3e8a19df5ce7480bb7d5b6647e514a91masimocom_--