0

While migrating oracle to postgresql I came up with the query:

Oracle:

select SYS_CONTEXT('USERENV','SID') from dual;

What will be the equivalent in PostgreSQL?

MAK
  • 6,824
  • 25
  • 74
  • 131

1 Answers1

1

The only thing I can think of is the backend PID

select pg_backend_pid();