pg_get_partkeydef ( table oid ) → textReconstructs the definition of a partitioned table's partition key, in the form it would have in the
PARTITION BY clause of CREATE TABLE. (This is a decompiled reconstruction, not the original text of the command.)