Re: RE: [PATCHES] relation filename patch - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: RE: [PATCHES] relation filename patch
Date
Msg-id 200005010436.AAA01959@candle.pha.pa.us
Whole thread Raw
In response to RE: RE: [PATCHES] relation filename patch  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
List pgsql-hackers
> 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
 


pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Back in town
Next
From: Thomas Lockhart
Date:
Subject: Re: gmake[3]: *** No rule to make target page/SUBSYS.o ?????????????????