|
15 | 15 | *
|
16 | 16 | *
|
17 | 17 | * IDENTIFICATION
|
18 |
| - *$Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.38 2001/11/08 04:05:12 tgl Exp $ |
| 18 | + *$Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.39 2002/01/18 17:13:50 tgl Exp $ |
19 | 19 | *
|
20 | 20 | * Modifications - 28-Jun-2000 - pjw@rhyme.com.au
|
21 | 21 | *
|
|
62 | 62 | *backup file; prior version was restoring schema in data-only
|
63 | 63 | *restores. Added enum to make code easier to understand.
|
64 | 64 | *
|
| 65 | + * Modifications - 18-Jan-2002 - pjw@rhyme.com.au |
| 66 | + * - Modified _tocEntryRequired to handle '<Init>/Max OID' as a special |
| 67 | + * case (ie. as a DATA item) as per bugs reported by Bruce Momjian |
| 68 | + *around 17-Jan-2002. |
| 69 | + * |
65 | 70 | *-------------------------------------------------------------------------
|
66 | 71 | */
|
67 | 72 |
|
@@ -1917,6 +1922,13 @@ _tocEntryRequired(TocEntry *te, RestoreOptions *ropt)
|
1917 | 1922 | res=res& ~REQ_DATA;
|
1918 | 1923 | }
|
1919 | 1924 |
|
| 1925 | +/* Special case: <Init> type with <Max OID> name; this is part of |
| 1926 | + * a DATA restore even though it has SQL. |
| 1927 | + */ |
| 1928 | +if ( (strcmp(te->desc,"<Init>")==0 )&& (strcmp(te->name,"Max OID")==0) ) { |
| 1929 | +res=REQ_DATA; |
| 1930 | +} |
| 1931 | + |
1920 | 1932 | /* Mask it if we only want schema */
|
1921 | 1933 | if (ropt->schemaOnly)
|
1922 | 1934 | res=res&REQ_SCHEMA;
|
|