This is not available in Cursor. Extension ID "ms-ossdata.vscode-pgsql" returns no results. I wonder if Microsoft is blocking VSCode forks from having this extension?
This is also what's said here by one of the devs: https://github.com/microsoft/vscode-pgsql/issues/15
Looks like manually loading the VSIX to bypass the compatibility check should work but who knows how stable that'll be.