pgsql: Fix RelationBuildPartitionKey's processing of partition key expr

2018-02-07 Thread Tom Lane
Fix RelationBuildPartitionKey's processing of partition key expressions. Failure to advance the list pointer while reading partition expressions from a list results in invoking an input function with inappropriate data, possibly leading to crashes or, with carefully crafted input, disclosure of ar

pgsql: Fix RelationBuildPartitionKey's processing of partition key expr

2018-02-07 Thread Tom Lane
Fix RelationBuildPartitionKey's processing of partition key expressions. Failure to advance the list pointer while reading partition expressions from a list results in invoking an input function with inappropriate data, possibly leading to crashes or, with carefully crafted input, disclosure of ar