https://github.com/postgrespro/ptrack/blob/de8d65509d0361a8648d31a11bef8090f2d2ca87/patches/REL_12_STABLE-ptrack-core.diff#L118