From 40c4472e229e46b885f4563ab377d51ba7f5e88c Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 12 Dec 2002 21:02:25 +0000 Subject: TODO marked as done: * Add schema, cast, and conversion backslash commands to psql I had to create a new publically available function, pg_conversion_is_visible, as it seemed to be missing from the catalogs. This required me to do no small amount of hacking around in namespace.c I have updated the \? help and sgml docs. \dc - list conversions [PATTERN] \dC - list casts \dn list schemas I didn't support patterns with casts as there's nothing obvious to match against. Catalog version incremented --- initdb required. Christopher Kings-Lynne --- src/bin/psql/command.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/bin/psql/command.c') diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index bfe5b45e1ef..06d31598566 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -3,7 +3,7 @@ * * Copyright 2000-2002 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.85 2002/11/08 19:12:21 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.86 2002/12/12 21:02:21 momjian Exp $ */ #include "postgres_fe.h" #include "command.h" @@ -381,7 +381,13 @@ exec_command(const char *cmd, case 'D': success = listDomains(pattern); break; - + case 'c': + success = listConversions(pattern); + break; + case 'C': + success = listCasts(pattern); + break; + default: status = CMD_UNKNOWN; } -- cgit v1.2.3