What is nameout() for?
Bruce Momjian <maillist@candle.pha.pa.us>
From: Bruce Momjian <maillist@candle.pha.pa.us>
To: PostgreSQL-development <pgsql-hackers@postgreSQL.org>
Date: 1999-11-07T14:16:54Z
Lists: pgsql-hackers
I am confused by nameout(). There are a number of places where table
names are output using nameout(), and many other cases where they are
just output without calling nameout. Can someone explain why the dash
is important? I can see the pstrdup as being important, but not in all
of the cases where nameout is called.
---------------------------------------------------------------------------
/*
* nameout - converts internal reprsentation to "..."
*/
char *
nameout(NameData *s)
{
if (s == NULL)
return "-";
else
return pstrdup(s->data);
}
--
Bruce Momjian | http://www.op.net/~candle
maillist@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026