Re: RE: [PATCHES] relation filename patch

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
Cc: "Ross J(dot) Reedstrom" <reedstrm(at)wallace(dot)ece(dot)rice(dot)edu>, pgsql-hackers <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: RE: [PATCHES] relation filename patch
Date: 2000-05-01 04:36:44
Message-ID: 200005010436.AAA01959@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Lockhart 2000-05-01 11:08:50 Re: gmake[3]: *** No rule to make target page/SUBSYS.o ?????????????????
Previous Message Hiroshi Inoue 2000-05-01 04:31:51 RE: RE: [PATCHES] relation filename patch