diff options
| author | Bruce Momjian <bruce@momjian.us> | 2010-09-28 22:11:21 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2010-09-28 22:11:21 +0000 |
| commit | b757f18f2ff9e1e16c45030e7e2a1c7f116ccf40 (patch) | |
| tree | 33622a78d32d4c13096b0e8f632e2c802828b37b /contrib/pg_upgrade/pg_upgrade.h | |
| parent | ddfa48776c7cb6117d09bef6b9ab9cda58084472 (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.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 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 |
