Re: [HACKERS] reverse file descriptor to a file name... - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] reverse file descriptor to a file name...
Date
Msg-id 199804112303.TAA04340@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] reverse file descriptor to a file name...  (The Hermit Hacker <scrappy@hub.org>)
List pgsql-hackers
> Odd...rel->rd_rel->relname->data produces:
>
> nbtsearch.c: In function `_bt_moveright':
> nbtsearch.c:223: invalid type argument of `->'
>
> But...rel->rd_rel->relname.data works.
>
>     Now, I really really hate pointers to start with...always
> have...but can someone confirm which is (should be) right? :(

Yep, that is right.  It takes a little trial-and-error to check the type
of each structure member, and reference it accordingly.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date:

Previous
From: Ryan Kirkpatrick
Date:
Subject: Re: [HACKERS] Linux/Alpha and pgsql....
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Strange...