Copied from postgresql and used ' instead of `