|
22 | 22 | *
|
23 | 23 | *
|
24 | 24 | * IDENTIFICATION
|
25 |
| - * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.255 2002/04/24 22:39:49 petere Exp $ |
| 25 | + * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.256 2002/04/29 04:10:02 tgl Exp $ |
26 | 26 | *
|
27 | 27 | *-------------------------------------------------------------------------
|
28 | 28 | */
|
@@ -3039,8 +3039,8 @@ getIndexes(int *numIndexes)
|
3039 | 3039 | "t1.relname as indexrelname, t2.relname as indrelname, "
|
3040 | 3040 | "pg_get_indexdef(i.indexrelid) as indexdef, "
|
3041 | 3041 | "i.indisprimary, i.indkey, "
|
3042 |
| -"CASE WHENregproctooid(i.indproc) <> 0 " |
3043 |
| -" THEN (SELECT pronargs FROM pg_proc WHERE pg_proc.oid =regproctooid(i.indproc)) " |
| 3042 | +"CASE WHEN i.indproc <> 0 " |
| 3043 | +" THEN (SELECT pronargs FROM pg_proc WHERE pg_proc.oid = i.indproc) " |
3044 | 3044 | " ELSE t1.relnatts END as indnkeys "
|
3045 | 3045 | "FROM pg_index i, pg_class t1, pg_class t2 "
|
3046 | 3046 | "WHERE t1.oid = i.indexrelid and t2.oid = i.indrelid "
|
|