summaryrefslogtreecommitdiff
path: root/contrib/pg_upgrade/pg_upgrade.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2010-09-28 21:41:03 +0000
committerBruce Momjian <bruce@momjian.us>2010-09-28 21:41:03 +0000
commit9340fb80b1dba5528c0d16b24985369659a19377 (patch)
tree9f4fd6fd6b30a6f694a88156baefe445e385aad5 /contrib/pg_upgrade/pg_upgrade.h
parenta1bb570de97c71eba3c1b7a067063e8ba28c41d5 (diff)
downloadpostgresql-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.h2
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 */