Fix incorrect field count in pg_control_checkpoint()

18 columns are generated in this function, but we had enough space for
19 of them.  Introduced by 4b0d28d.

Author: Bharath Rupireddy
Reviewed-by: Justin Pryzby, Euler Taveira
Discussion: https://postgr.es/m/CALj2ACVQ=hAs=sT0n4xriimqRrrgECySfg_tSqA+26Rb_yfs2A@mail.gmail.com
This commit is contained in:
Michael Paquier 2021-12-26 17:41:59 +09:00
parent 5e64ad3697
commit 86d9888d2e
1 changed files with 2 additions and 2 deletions

View File

@ -79,8 +79,8 @@ pg_control_system(PG_FUNCTION_ARGS)
Datum Datum
pg_control_checkpoint(PG_FUNCTION_ARGS) pg_control_checkpoint(PG_FUNCTION_ARGS)
{ {
Datum values[19]; Datum values[18];
bool nulls[19]; bool nulls[18];
TupleDesc tupdesc; TupleDesc tupdesc;
HeapTuple htup; HeapTuple htup;
ControlFileData *ControlFile; ControlFileData *ControlFile;