> It's diffrent from what I meant.
> My question is why the macro RelationGetRelationName()
> needs the following implementation.
> Is it bad to add another entry such as rd_username to relation
> descriptor ?
>
> #define RelationGetRelationName(relation) \
> (\
> (strncmp(RelationGetPhysicalRelationName(relation), \
> "pg_temp.", strlen("pg_temp.")) != 0) \
> ? \
> RelationGetPhysicalRelationName(relation) \
> : \
> get_temp_rel_by_physicalname( \
> RelationGetPhysicalRelationName(relation)) \
> )
Yes, that would work too.
-- Bruce Momjian | http://www.op.net/~candle pgman@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