pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Moreno Andreo <moreno.andreo@evolu-s.it>
To: PostgreSQL mailing lists <pgsql-general@postgresql.org>
Subject: Debian : No echo after pg_dump | psql
Date: Thu, 29 Nov 2018 17:12:45 +0100
Message-ID: <690144ed-bfb2-e06e-2aba-4d8e9e99edaf@evolu-s.it> (raw)

Hi guys,
     I'm facing a strange thing on my test server (Google Cloud)

On my Debian 9 box I'm running Postgres 9.6.10, and I'm transferring 
some databases from another server (Debian 8, PG 9.5.15).

The command I'm using is
root@xxxxx:~# pg_dump -v -C -h <remote host> -p 6543 -U postgres 
<dbname> | psql -h localhost -p 6543 -U postgres <dbname>
It presents a double password prompt after I run it:
Password: Password for user postgres:

I enter _once_ my postgres password, and it starts processing data.

At a certain point it suddenly stops processing without prompting 
anything, and goes on only if I insert my postgres password again, as if 
it was for one of the two prompts it showed at the beginning where I 
entered only one password.
After another bit of processing, it asks another time (the third!) my 
postgres password. After I entered it, it goes to the end (and there are 
no issues in data or anything simia.

After this, I have no more echo on what I'm typing, but if I type 
something and press enter, I can see the result of the command I just 
typed (and have not seen) on the console.

Restarting the SSH session resolves the problem.

The same strange behavior is the same if I switch servers (running 
pg_dump on Debian 8/PG 9.5 connecting on Debian 9/PG 9.6)

Another thing I was forgetting to report:

If I create database (just database, not schema) on target machine, I 
receive the error "database xxxx already exists" but the dump goes on
If I don't create it, I receive the error "database xxxx does not exist" 
and processing aborts.

Hope I've been clear enough......

Has someone bumped into it?

Thanks in advance

Moreno.-






view thread (5+ messages)  latest in thread

Message-ID: <690144ed-bfb2-e06e-2aba-4d8e9e99edaf@evolu-s.it>
Permalink:  ../690144ed-bfb2-e06e-2aba-4d8e9e99edaf@evolu-s.it/
Also on:    postgresql.org/message-id/690144ed-bfb2-e06e-2aba-4d8e9e99edaf@evolu-s.it

 · 

reply

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: moreno.andreo@evolu-s.it
  Subject: Re: Debian : No echo after pg_dump | psql
  In-Reply-To: <690144ed-bfb2-e06e-2aba-4d8e9e99edaf@evolu-s.it>
  References: <690144ed-bfb2-e06e-2aba-4d8e9e99edaf@evolu-s.it>

* 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