Postgres Sql Not In Function In Sql