[HACKERS] Call flow of btinsert(PG_FUNCTION_ARGS)

2013-11-19 Thread Rohit Goyal
Hi All, I was reading b tree index code and I wanted to the know the calling function which calls btinserthttp://doxygen.postgresql.org/nbtree_8c.html#a2b69e4abd6e38fbb317a503b8cf6e00a (PG_FUNCTION_ARGShttp://doxygen.postgresql.org/fmgr_8h.html#adf4dec9b7d23f1b4c68477affde8b7ff) function in

Re: [HACKERS] Call flow of btinsert(PG_FUNCTION_ARGS)

2013-11-19 Thread Peter Geoghegan
On Tue, Nov 19, 2013 at 2:22 AM, Rohit Goyal rhtgyl...@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

Re: [HACKERS] Call flow of btinsert(PG_FUNCTION_ARGS)

2013-11-19 Thread Rohit Goyal
On Tue, Nov 19, 2013 at 11:26 AM, Peter Geoghegan p...@heroku.com wrote: On Tue, Nov 19, 2013 at 2:22 AM, Rohit Goyal rhtgyl...@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.

Re: [HACKERS] Call flow of btinsert(PG_FUNCTION_ARGS)

2013-11-19 Thread Amit Langote
On Tue, Nov 19, 2013 at 7:31 PM, Rohit Goyal rhtgyl...@gmail.com wrote: On Tue, Nov 19, 2013 at 11:26 AM, Peter Geoghegan p...@heroku.com wrote: On Tue, Nov 19, 2013 at 2:22 AM, Rohit Goyal rhtgyl...@gmail.com wrote: I was reading b tree index code and I wanted to the know the calling

Re: [HACKERS] Call flow of btinsert(PG_FUNCTION_ARGS)

2013-11-19 Thread Craig Ringer
On 11/19/2013 06:22 PM, Rohit Goyal wrote: Hi All, I was reading b tree index code and I wanted to the know the calling function which calls btinsert http://doxygen.postgresql.org/nbtree_8c.html#a2b69e4abd6e38fbb317a503b8cf6e00a(PG_FUNCTION_ARGS

Re: [HACKERS] Call flow of btinsert(PG_FUNCTION_ARGS)

2013-11-19 Thread Rohit Goyal
On Tue, Nov 19, 2013 at 11:52 AM, Craig Ringer cr...@2ndquadrant.comwrote: On 11/19/2013 06:22 PM, Rohit Goyal wrote: Hi All, I was reading b tree index code and I wanted to the know the calling function which calls btinsert

Re: [HACKERS] Call flow of btinsert(PG_FUNCTION_ARGS)

2013-11-19 Thread Andres Freund
Hi Rohit, On 2013-11-19 13:11:12 +0100, Rohit Goyal wrote: Please tel me how to attached gdb to pid and debug. Also what I understood from your reply is that everything is abstracted, so am doesnot care abt backend implementation. Now, I want to modify B tree indexing scheme. So, which files

Re: [HACKERS] Call flow of btinsert(PG_FUNCTION_ARGS)

2013-11-19 Thread Craig Ringer
On 11/19/2013 08:11 PM, Rohit Goyal wrote: Also what I understood from your reply is that everything is abstracted, so am doesnot care abt backend implementation. Now, I want to modify B tree indexing scheme. So, which files I should focus ? Depends on whether you can do what you want