From b6335b4fb405c56af5df6c339cbc8284293df37c Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 12 Jul 2004 20:41:13 +0000 Subject: Add tablespace location display for psql \d. Gavin Sherry --- src/bin/psql/common.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/bin/psql/common.h') diff --git a/src/bin/psql/common.h b/src/bin/psql/common.h index 35d67828015..64988142c89 100644 --- a/src/bin/psql/common.h +++ b/src/bin/psql/common.h @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/common.h,v 1.37 2004/07/11 13:29:15 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/common.h,v 1.38 2004/07/12 20:41:13 momjian Exp $ */ #ifndef COMMON_H #define COMMON_H @@ -20,6 +20,9 @@ #define psql_assert(p) #endif +#define atooid(x) ((Oid) strtoul((x), NULL, 10)) + + /* * Safer versions of some standard C library functions. If an * out-of-memory condition occurs, these functions will bail out -- cgit v1.2.3