Re: a question about relkind of RelationData handed over to heap_update function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: 노홍찬 <fallsmal(at)cs(dot)yonsei(dot)ac(dot)kr>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: a question about relkind of RelationData handed over to heap_update function
Date: 2009-10-25 15:07:10
Message-ID: 1819.1256483230@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

=?ks_c_5601-1987?B?s+vIq8L5?= <fallsmal(at)cs(dot)yonsei(dot)ac(dot)kr> writes:
> I found that the relkind fields of all RelationData which is handed over to
> heap_update are all the same as r.

Well, yeah: heap_update is applied to heaps (ordinary tables). Not indexes.
The indexes are generally updated in a separate operation afterwards.

> I want to distinguish normal relation (actual table) from primary index
> relation (primary indexes of some tables).

Perhaps you should take about three steps back and explain what it is
you want to do, because heap_update is probably not the right place
to be doing it.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-10-25 15:20:37 Re: Parsing config files in a directory
Previous Message 노홍찬 2009-10-25 14:28:49 a question about relkind of RelationData handed over to heap_update function