Re: How pg_dump works

From: Moreno Andreo <moreno(dot)andreo(at)evolu-s(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How pg_dump works
Date: 2016-10-10 12:24:34
Message-ID: 47aa5179-8058-fabd-88ea-d72b34571980@evolu-s.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Il 10/10/2016 14:16, Achilleas Mantzios ha scritto:
> On 10/10/2016 14:50, Moreno Andreo wrote:
>> Hi all,
>> I need to pg_dump a database to another server.
>> The particularity is that the database is bigger than remaining space
>> on disk. Obviously, this is not a problem because i'm dumping to
>> another host, but I need to know if the procedure streams data to
>> remote host or the data itself is packed up in temporary file(s) that
>> are sent to remote host.
>> The former would be such a problem, because there are good chances
>> I'll have my disk filled up...
>>
>> I've not found details on this in documentation.
>>
>
> In fact, in the docs there is all the info you might ever need.
> PostgreSQL project excels on that compared to *many* free-software
> projects. Now what you could do is something like :
> createdb -h your_big_server your_database
> pg_dump -h your_small_server your_database | psql -h your_big_server
> -f - your_database

Thanks, I was aware of this usage. I just wanted to be sure no
additional disk space has to be used in "small_server".

>
>> Thanks
>> Moreno.
>>
>>
>>
>>
>>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Moreno Andreo 2016-10-10 12:25:31 Re: How pg_dump works
Previous Message hamann.w 2016-10-10 12:16:23 Re: How pg_dump works