What is nameout() for?

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: What is nameout() for?
Date: 1999-11-07 14:16:54
Message-ID: 199911071416.JAA18751@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 1999-11-07 16:44:10 Re: [GENERAL] users in Postgresql
Previous Message Bruce Momjian 1999-11-07 12:58:01 Re: [HACKERS] Arrays broken on temp tables