summaryrefslogtreecommitdiff
path: root/contrib/pg_upgrade/pg_upgrade.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2010-09-28 22:11:21 +0000
committerBruce Momjian <bruce@momjian.us>2010-09-28 22:11:21 +0000
commitb757f18f2ff9e1e16c45030e7e2a1c7f116ccf40 (patch)
tree33622a78d32d4c13096b0e8f632e2c802828b37b /contrib/pg_upgrade/pg_upgrade.h
parentddfa48776c7cb6117d09bef6b9ab9cda58084472 (diff)
Use macro atooid() for conversion of strings to oids, per suggestion
from Tom.
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 7949f367ec9..79a49bc052a 100644
--- a/contrib/pg_upgrade/pg_upgrade.h
+++ b/contrib/pg_upgrade/pg_upgrade.h
@@ -52,6 +52,8 @@
#define CLUSTERNAME(cluster) ((cluster) == CLUSTER_OLD ? "old" : "new")
+#define atooid(x) ((Oid) strtoul((x), NULL, 10))
+
/* OID system catalog preservation added during PG 9.0 development */
#define TABLE_SPACE_SUBDIRS 201001111