15
15
*
16
16
*
17
17
* IDENTIFICATION
18
- * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.32 2001/08/22 20:23:23 petere Exp $
18
+ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.33 2001/09/21 21:58:30 petere Exp $
19
19
*
20
20
* Modifications - 28-Jun-2000 - pjw@rhyme.com.au
21
21
*
@@ -333,7 +333,7 @@ RestoreArchive(Archive *AHX, RestoreOptions *ropt)
333
333
* warnings.
334
334
*/
335
335
if (!AH -> CustomOutPtr )
336
- write_msg (modulename , "WARNING: skipping BLOB restoration\n" );
336
+ write_msg (modulename , "WARNING: skipping large object restoration\n" );
337
337
338
338
}
339
339
else
@@ -398,12 +398,12 @@ RestoreArchive(Archive *AHX, RestoreOptions *ropt)
398
398
399
399
if ((reqs & 2 ) != 0 ) /* We loaded the data */
400
400
{
401
- ahlog (AH , 1 , "fixing up BLOB reference for %s\n" , te -> name );
401
+ ahlog (AH , 1 , "fixing up large object cross- reference for %s\n" , te -> name );
402
402
FixupBlobRefs (AH , te -> name );
403
403
}
404
404
}
405
405
else
406
- ahlog (AH , 2 , "ignoring BLOB cross-references for %s %s\n" , te -> desc , te -> name );
406
+ ahlog (AH , 2 , "ignoring large object cross-references for %s %s\n" , te -> desc , te -> name );
407
407
408
408
te = te -> next ;
409
409
}
@@ -717,7 +717,7 @@ StartBlob(Archive *AHX, Oid oid)
717
717
ArchiveHandle * AH = (ArchiveHandle * ) AHX ;
718
718
719
719
if (!AH -> StartBlobPtr )
720
- die_horribly (AH , modulename , "BLOB output not supported in chosen format\n" );
720
+ die_horribly (AH , modulename , "large object output not supported in chosen format\n" );
721
721
722
722
(* AH -> StartBlobPtr ) (AH , AH -> currToc , oid );
723
723
@@ -757,14 +757,14 @@ EndRestoreBlobs(ArchiveHandle *AH)
757
757
{
758
758
if (AH -> txActive )
759
759
{
760
- ahlog (AH , 2 , "committing BLOB transactions\n" );
760
+ ahlog (AH , 2 , "committing large object transactions\n" );
761
761
CommitTransaction (AH );
762
762
}
763
763
764
764
if (AH -> blobTxActive )
765
765
CommitTransactionXref (AH );
766
766
767
- ahlog (AH , 1 , "restored %d BLOBs \n" , AH -> blobCount );
767
+ ahlog (AH , 1 , "restored %d large objects \n" , AH -> blobCount );
768
768
}
769
769
770
770
@@ -781,7 +781,7 @@ StartRestoreBlob(ArchiveHandle *AH, Oid oid)
781
781
if (!AH -> createdBlobXref )
782
782
{
783
783
if (!AH -> connection )
784
- die_horribly (AH , modulename , "cannot restore BLOBs without a database connection\n" );
784
+ die_horribly (AH , modulename , "cannot restore large objects without a database connection\n" );
785
785
786
786
CreateBlobXrefTable (AH );
787
787
AH -> createdBlobXref = 1 ;
@@ -792,23 +792,23 @@ StartRestoreBlob(ArchiveHandle *AH, Oid oid)
792
792
*/
793
793
if (!AH -> txActive )
794
794
{
795
- ahlog (AH , 2 , "starting BLOB transactions\n" );
795
+ ahlog (AH , 2 , "starting large object transactions\n" );
796
796
StartTransaction (AH );
797
797
}
798
798
if (!AH -> blobTxActive )
799
799
StartTransactionXref (AH );
800
800
801
801
loOid = lo_creat (AH -> connection , INV_READ | INV_WRITE );
802
802
if (loOid == 0 )
803
- die_horribly (AH , modulename , "could not create BLOB \n" );
803
+ die_horribly (AH , modulename , "could not create large object \n" );
804
804
805
- ahlog (AH , 2 , "restoring BLOB oid %u as %u\n" , oid , loOid );
805
+ ahlog (AH , 2 , "restoring large object with oid %u as %u\n" , oid , loOid );
806
806
807
807
InsertBlobXref (AH , oid , loOid );
808
808
809
809
AH -> loFd = lo_open (AH -> connection , loOid , INV_WRITE );
810
810
if (AH -> loFd == -1 )
811
- die_horribly (AH , modulename , "could not open BLOB \n" );
811
+ die_horribly (AH , modulename , "could not open large object \n" );
812
812
813
813
AH -> writingBlob = 1 ;
814
814
}
@@ -824,7 +824,7 @@ EndRestoreBlob(ArchiveHandle *AH, Oid oid)
824
824
*/
825
825
if (((AH -> blobCount / BLOB_BATCH_SIZE ) * BLOB_BATCH_SIZE ) == AH -> blobCount )
826
826
{
827
- ahlog (AH , 2 , "committing BLOB transactions\n" );
827
+ ahlog (AH , 2 , "committing large object transactions\n" );
828
828
CommitTransaction (AH );
829
829
CommitTransactionXref (AH );
830
830
}
@@ -1198,7 +1198,7 @@ ahwrite(const void *ptr, size_t size, size_t nmemb, ArchiveHandle *AH)
1198
1198
if (AH -> writingBlob )
1199
1199
{
1200
1200
res = lo_write (AH -> connection , AH -> loFd , (void * ) ptr , size * nmemb );
1201
- ahlog (AH , 5 , "wrote %d bytes of BLOB data (result = %d)\n" , size * nmemb , res );
1201
+ ahlog (AH , 5 , "wrote %d bytes of large object data (result = %d)\n" , size * nmemb , res );
1202
1202
if (res < size * nmemb )
1203
1203
die_horribly (AH , modulename , "could not write to large object (result: %d, expected: %d)\n" ,
1204
1204
res , size * nmemb );
0 commit comments