pgsql: Fix bogus code for extracting extended-statistics data from sysc

2018-05-02 Thread Tom Lane
Fix bogus code for extracting extended-statistics data from syscache. statext_dependencies_load and statext_ndistinct_load were not up to snuff, in addition to being randomly different from each other. In detail: * Deserialize the fetched bytea value before releasing the syscache entry, not afte

pgsql: Fix bogus code for extracting extended-statistics data from sysc

2018-05-02 Thread Tom Lane
Fix bogus code for extracting extended-statistics data from syscache. statext_dependencies_load and statext_ndistinct_load were not up to snuff, in addition to being randomly different from each other. In detail: * Deserialize the fetched bytea value before releasing the syscache entry, not afte