From d57753efd45c9177bcdfda2b5857a79e66f4cce7 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 25 Jan 1998 20:23:40 +0000 Subject: [PATCH] Add cash_words_out and fix \df width. --- src/bin/psql/psql.c | 4 ++-- src/include/catalog/pg_proc.h | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c index ab519b4143..a4b5bf6008 100644 --- a/src/bin/psql/psql.c +++ b/src/bin/psql/psql.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.129 1998/01/23 19:22:24 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.130 1998/01/25 20:23:36 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1770,7 +1770,7 @@ HandleSlashCmds(PsqlSettings *pset, SendQuery(&success, pset,"\ SELECT t.typname as return_type, \ p.proname as function, \ - oid8types(p.proargtypes) as arguments, \ + substr(oid8types(p.proargtypes),1,20) as arguments, \ substr(obj_description(p.oid),1,23) \ FROM pg_proc p, pg_type t \ WHERE p.prorettype = t.oid and \ diff --git a/src/include/catalog/pg_proc.h b/src/include/catalog/pg_proc.h index 1a1b7f01a3..b32dead7b4 100644 --- a/src/include/catalog/pg_proc.h +++ b/src/include/catalog/pg_proc.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: pg_proc.h,v 1.43 1998/01/24 22:48:41 momjian Exp $ + * $Id: pg_proc.h,v 1.44 1998/01/25 20:23:40 momjian Exp $ * * NOTES * The script catalog/genbki.sh reads this file and generates .bki @@ -1178,6 +1178,8 @@ DATA(insert OID = 886 ( cash_in PGUID 11 f t f 1 f 790 "0" 100 0 0 100 fo DESCR("(internal)"); DATA(insert OID = 887 ( cash_out PGUID 11 f t f 1 f 23 "0" 100 0 0 100 foo bar )); DESCR("(internal)"); +DATA(insert OID = 1273 ( cash_words_out PGUID 11 f t f 1 f 23 "0" 100 0 0 100 foo bar )); +DESCR("output amount as words"); DATA(insert OID = 888 ( cash_eq PGUID 11 f t f 2 f 16 "790 790" 100 0 0 100 foo bar )); DESCR("equals"); DATA(insert OID = 889 ( cash_ne PGUID 11 f t f 2 f 16 "790 790" 100 0 0 100 foo bar )); -- 2.11.0