As Julien pointed, the new GUC plan_storage shouldbe PGC_POSTMASTER(1), and we should use Int64GetDatum(Fast) for queryid since it is an int64. On the way fixing it I noticed that Int64GetDatumFast is fed with a constant, which is not the proper use. Actually build fails for !USE_FLOAT_BYVAL servers. Fix them together (2). Finally, I'm not sure how come I pushed that with that state, but compiler complains about some uninitialized variables so fix it(3).
As Julien pointed, the new GUC plan_storage shouldbe PGC_POSTMASTER(1), and we should use Int64GetDatum(Fast) for queryid since it is an int64. On the way fixing it I noticed that Int64GetDatumFast is fed with a constant, which is not the proper use. Actually build fails for !USE_FLOAT_BYVAL servers. Fix them together (2). Finally, I'm not sure how come I pushed that with that state, but compiler complains about some uninitialized variables so fix it(3).