What is nameout() for?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема What is nameout() for?
Дата
Msg-id 199911071416.JAA18751@candle.pha.pa.us
обсуждение исходный текст
Список 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,
Pennsylvania19026
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Arrays broken on temp tables
Следующее
От: "Damond Walker"
Дата:
Сообщение: psql and 6.5.3