Re: backing and restoring whole database server - how does this script look

Поиск
Список
Период
Сортировка
Искать
От
Kevin Bailey
Тема
Re: backing and restoring whole database server - how does this script look
Дата
Msg-id
49DFF3AA.1070900@freewayprojects.com
Ответ на
Список
Дерево обсуждения
backing and restoring whole database server - how does this script look Kevin Bailey <kbailey@freewayprojects.com>
Re: backing and restoring whole database server - how does this script look Peter Koczan <pjkoczan@gmail.com>
Re: backing and restoring whole database server - how does this script look Tom Lane <tgl@sss.pgh.pa.us>
Re: backing and restoring whole database server - how does this script look Kevin Bailey <kbailey@freewayprojects.com>
Can a whole server be restored over to another server in a single command? Kevin Bailey <kbailey@freewayprojects.com>
Re: Can a whole server be restored over to another server in a single command? Tom Lane <tgl@sss.pgh.pa.us>
Re: Can a whole server be restored over to another server in a single command? Kevin Bailey <kbailey@freewayprojects.com>
Re: Can a whole server be restored over to another server in a single command? Tom Lane <tgl@sss.pgh.pa.us>
Re: Can a whole server be restored over to another server in a single command? Kevin Bailey <kbailey@freewayprojects.com>
Re: Can a whole server be restored over to another server in a single command? Kevin Bailey <kbailey@freewayprojects.com>
Lost my postgres database? Kevin Bailey <kbailey@freewayprojects.com>
Re: Lost my postgres database? Tom Lane <tgl@sss.pgh.pa.us>
Re: Lost my postgres database? Kevin Bailey <kbailey@freewayprojects.com>
Re: Lost my postgres database? Scott Marlowe <scott.marlowe@gmail.com>
Re: Can a whole server be restored over to another server in a single command? Kevin Bailey <kbailey@freewayprojects.com>
How to completely clean out all databases from a PG server and reinitialise from scratch Kevin Bailey <kbailey@freewayprojects.com>
Re: backing and restoring whole database server - how does this script look P Kapat <kap4lin@gmail.com>


Tom Lane wrote:
Peter Koczan <pjkoczan@gmail.com> writes: 
On Fri, Apr 10, 2009 at 4:34 AM, Kevin Bailey
<kbailey@freewayprojects.com> wrote:   
Just to make thigs more interesting, we have to do this for a version 8.1
server and an older 7.4 server which has blobs in it.     
 
If I remember correctly, pg_dumpall only allows text format dumps, and
blobs need to be dumped in non-text formats. This might have changed
since 7.4, but I couldn't find any source either way.   
The 8.1 release notes quoth:
Allow pg_dump to dump large objects even in text mode (Tom)
With this change, large objects are now always dumped; the former -b switch is a no-op.

so in that version and up you can use pg_dumpall without worrying about
blobs.  The upthread proposal of separately dumping each database in
-Fc mode is probably the only solution in 7.4, but you ought to be
thinking about how to get off 7.4 not how to perpetuate it.  We'll be
dropping support for 7.4 RSN.
		regards, tom lane
 
This is still giving out plenty of error messages - BTW - both servers are on 8.1

time PG_dumpall --inserts --clean -h $REMOTE -U admin | psql -U postgres template1


Will reply with the error messages after the cron job has run in an hour or so.

Regards,

bailey86
В списке pgsql-admin по дате отправления
От: Tena Sakai
Дата:
Сообщение: Re: connectivity problem
От: Kevin Bailey
Дата:
FAQ