diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2009-02-02 20:07:37 +0000 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2009-02-02 20:07:37 +0000 |
commit | 775f1b379e3a282140f60ef65a11d1444dc80ccf (patch) | |
tree | 9d6a1320d8d85588d927c45096df47e9044d6248 /src/bin/pg_dump/pg_backup_files.c | |
parent | 3a5b77371522b64feda006a7aed2a0e57bfb2b22 (diff) | |
download | postgresql-775f1b379e3a282140f60ef65a11d1444dc80ccf.tar.gz postgresql-775f1b379e3a282140f60ef65a11d1444dc80ccf.zip |
Provide for parallel restoration from a custom format archive. Each data and
post-data step is run in a separate worker child (a thread on Windows, a child
process elsewhere) up to the concurrent number specified by the new pg_restore
command-line --multi-thread | -m switch.
Andrew Dunstan, with some editing by Tom Lane.
Diffstat (limited to 'src/bin/pg_dump/pg_backup_files.c')
-rw-r--r-- | src/bin/pg_dump/pg_backup_files.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_backup_files.c b/src/bin/pg_dump/pg_backup_files.c index 47a4ddd77cb..544e48722b4 100644 --- a/src/bin/pg_dump/pg_backup_files.c +++ b/src/bin/pg_dump/pg_backup_files.c @@ -20,7 +20,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_files.c,v 1.34 2007/10/28 21:55:52 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_files.c,v 1.35 2009/02/02 20:07:37 adunstan Exp $ * *------------------------------------------------------------------------- */ @@ -87,6 +87,7 @@ InitArchiveFmt_Files(ArchiveHandle *AH) AH->WriteBufPtr = _WriteBuf; AH->ReadBufPtr = _ReadBuf; AH->ClosePtr = _CloseArchive; + AH->ReopenPtr = NULL; AH->PrintTocDataPtr = _PrintTocData; AH->ReadExtraTocPtr = _ReadExtraToc; AH->WriteExtraTocPtr = _WriteExtraToc; @@ -96,6 +97,8 @@ InitArchiveFmt_Files(ArchiveHandle *AH) AH->StartBlobPtr = _StartBlob; AH->EndBlobPtr = _EndBlob; AH->EndBlobsPtr = _EndBlobs; + AH->ClonePtr = NULL; + AH->DeClonePtr = NULL; /* * Set up some special context used in compressing data. |