Undefined function fatal error

I have a linux based system. I wanted to connect to postgresql while building a custom module but it throws an error as stated.
According to previous queries in the community all the answers are for windows based.
Can i use the extension in linux based system or it is not possible ?

Not possible. We only include the MySQL extension on Linux. For Windows you can choose from all available extensions which are prebuild from the PHP group.