Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 29481e1

Browse files
author
Hiroshi Inoue
committed
Change FixupBlobXrefs() to take 'lo' type into account.
1 parent 052c2ea commit 29481e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pg_dump/pg_backup_db.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Implements the basic DB functions used by the archiver.
66
*
77
* IDENTIFICATION
8-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.24 2001/08/22 20:23:23 petere Exp $
8+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.25 2001/09/17 02:07:51 inoue Exp $
99
*
1010
* NOTES
1111
*
@@ -721,7 +721,7 @@ FixupBlobRefs(ArchiveHandle *AH, char *tablename)
721721

722722
appendPQExpBuffer(tblQry, "SELECT a.attname FROM pg_class c, pg_attribute a, pg_type t "
723723
" WHERE a.attnum > 0 AND a.attrelid = c.oid AND a.atttypid = t.oid "
724-
" AND t.typname = 'oid' AND c.relname = '%s';", tablename);
724+
" AND t.typname in ('oid', 'lo') AND c.relname = '%s';", tablename);
725725

726726
res = PQexec(AH->blobConnection, tblQry->data);
727727
if (!res)

0 commit comments

Comments
 (0)