Re: [HACKERS] Question about coding of free space map

2014-08-29 Thread Tom Lane
Heikki Linnakangas writes: > On 08/26/2014 05:13 AM, Tatsuo Ishii wrote: >> While looking into backend/storage/freespace/freespace.c, I noticed >> that struct FSMAddress is passed to functions by value, rather than >> reference. > There isn't really any strict coding rule on that. We pass RelFile

Re: [HACKERS] Question about coding of free space map

2014-08-29 Thread Heikki Linnakangas
On 08/26/2014 05:13 AM, Tatsuo Ishii wrote: While looking into backend/storage/freespace/freespace.c, I noticed that struct FSMAddress is passed to functions by value, rather than reference. I thought our code practice is defining pointer to a struct data and using the pointer for parameter passi