While migrating a stored procedure from T-SQL to postgresql I came across a blocker i.e the data is fetched from ##undolog tables. Now, I am facing problem to migrate it to Postgresql. Below is the simple query of undolog.
SELECT 1
FROM ##UndoLog
WHERE UndoAction = 3 AND TabName = @TabName AND PK_data = vPK_data;
How do I rewrite the query in postgresql?