Re: Call flow of btinsert(PG_FUNCTION_ARGS) - Mailing list pgsql-hackers

From Rohit Goyal
Subject Re: Call flow of btinsert(PG_FUNCTION_ARGS)
Date
Msg-id CANqGtStoTgiEn8fJEwjdM8rsOOQoYEeBW9=Kvy2T+O_Uw9hS9g@mail.gmail.com
Whole thread Raw
In response to Re: Call flow of btinsert(PG_FUNCTION_ARGS)  (Peter Geoghegan <pg@heroku.com>)
Responses Re: Call flow of btinsert(PG_FUNCTION_ARGS)  (Amit Langote <amitlangote09@gmail.com>)
List pgsql-hackers



On Tue, Nov 19, 2013 at 11:26 AM, Peter Geoghegan <pg@heroku.com> wrote:
On Tue, Nov 19, 2013 at 2:22 AM, Rohit Goyal <rhtgyl.87@gmail.com> wrote:
>
> I was reading b tree index code and I wanted to the know the calling
> function which calls btinsert(PG_FUNCTION_ARGS) function in nbtree.c file.
> Moreover, my goal behind reading this function was to check how tuple is
> inserted in btree.
> I want to understand the code flow for b tree index

Take a look at this:

http://www.postgresql.org/docs/9.3/static/index-functions.html


--
Peter Geoghegan
thanks for reply. :) Moreover, I am so confused about reading the nbtree folder c files or the file which you gave.

For example, If I want to read how the data is inserted in B tree index. Should I read your link or the btinsert(PG_FUNCTION_ARGS) in nbtree.c file in nbtree folder.

In future, if i want to modify btree indexing approach, then which files to look for.?
-- 
Regards,
Rohit Goyal

pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Windows build patch
Next
From: David Rowley
Date:
Subject: Re: CLUSTER FREEZE