Re: pgsql: Move inheritance expansion code into its own file

2019-01-10 Thread Alvaro Herrera
On 2019-Jan-10, Tom Lane wrote: > Alvaro Herrera writes: > > Move inheritance expansion code into its own file > > Hm, why does appendinfo.h need to depend on plannodes.h? > I don't see anything in it that looks like it comes from there. Yeah, probably no good reason. -- Álvaro Herrera

Re: pgsql: Move inheritance expansion code into its own file

2019-01-10 Thread Tom Lane
Alvaro Herrera writes: > Move inheritance expansion code into its own file Hm, why does appendinfo.h need to depend on plannodes.h? I don't see anything in it that looks like it comes from there. regards, tom lane

pgsql: Move inheritance expansion code into its own file

2019-01-10 Thread Alvaro Herrera
Move inheritance expansion code into its own file This commit moves expand_inherited_tables and underlings from optimizer/prep/prepunionc.c to optimizer/utils/inherit.c. Also, all of the AppendRelInfo-based expression manipulation routines are moved to optimizer/utils/appendinfo.c. No functional