diff options
| author | Bruce Momjian <bruce@momjian.us> | 2010-09-28 21:41:03 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2010-09-28 21:41:03 +0000 |
| commit | 9340fb80b1dba5528c0d16b24985369659a19377 (patch) | |
| tree | 9f4fd6fd6b30a6f694a88156baefe445e385aad5 /contrib/pg_upgrade/pg_upgrade.h | |
| parent | a1bb570de97c71eba3c1b7a067063e8ba28c41d5 (diff) | |
| download | postgresql-9340fb80b1dba5528c0d16b24985369659a19377.tar.gz | |
In pg_upgrade, properly handle oids > 2^31 by using strtoul() internally
rather than atol().
Per report from Brian Hirt
Diffstat (limited to 'contrib/pg_upgrade/pg_upgrade.h')
| -rw-r--r-- | contrib/pg_upgrade/pg_upgrade.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/pg_upgrade/pg_upgrade.h b/contrib/pg_upgrade/pg_upgrade.h index a7d46cf2bc..296b80f983 100644 --- a/contrib/pg_upgrade/pg_upgrade.h +++ b/contrib/pg_upgrade/pg_upgrade.h @@ -376,6 +376,8 @@ char *pg_strdup(migratorContext *ctx, const char *s); void *pg_malloc(migratorContext *ctx, int size); void pg_free(void *ptr); const char *getErrorText(int errNum); +unsigned int str2uint(const char *str); + /* version.c */ |
