Mysql`s SUBSTRING_INDEX 相当于 postgresql

Mysql`s SUBSTRING_INDEX equivalent in postgresql

我基本上是在尝试复制我知道 MySQL 中存在的功能。在 MySQL 中它看起来像:

 SUBSTRING_INDEX(p.url, 'selection=', -1)

如何在 PSQL 中复制它?

SELECT split_part(p.url, 'selection=', 2)...