What is nameout() for? - Mailing list pgsql-hackers

From Bruce Momjian
Subject What is nameout() for?
Date
Msg-id 199911071416.JAA18751@candle.pha.pa.us
Whole thread Raw
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Arrays broken on temp tables
Next
From: "Damond Walker"
Date:
Subject: psql and 6.5.3