Re: [HACKERS] reverse file descriptor to a file name...

From: The Hermit Hacker <scrappy(at)hub(dot)org>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] reverse file descriptor to a file name...
Date: 1998-04-10 23:23:11
Message-ID: Pine.BSF.3.96.980410200529.290P-100000@thelab.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 10 Apr 1998, The Hermit Hacker wrote:

> On Fri, 10 Apr 1998, Bruce Momjian wrote:
>
> > For your purpose, you want:
> >
> > Relation->rd_rel->relname
> >
> > Works like champ.
> >
> > This is not a trivial question, because the structures in PostgreSQL are
> > very complicated until you get used to them.
>
> Damn...I knew I should have looked deeper :(

Oops...I must be using that wrong...I'm getting:

NOTICE: Message from PostgreSQL backend: The Postmaster has informed me
that some other backend died abnormally and possibly corrupted
shared memory. I have rolled back the current transaction and am
going to terminate your database system connection and exit.
Please reconnect to the database system and repeat your query.

relname is of type NameData ... NameData is a struct, so shouldn't
it be:

Relation->rd_rel->relname->data

But, NameData only has one component, data...why make it a struct?

Marc G. Fournier
Systems Administrator @ hub.org
primary: scrappy(at)hub(dot)org secondary: scrappy(at){freebsd|postgresql}.org

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 1998-04-11 00:02:10 Re: [HACKERS] Linux/Alpha and pgsql....
Previous Message Ryan Kirkpatrick 1998-04-10 23:04:59 Linux/Alpha and pgsql....